ImageGear .NET v25.1 - Updated
Loading a Vector Drawing
User Guide > How to Work with... > SVG and Other Vector Formats > Loading a Vector Drawing

Loading a vector drawing is done using the same methods used to load other types of images. However, before loading the drawing, you must first enable support for the vector formats you want to use. For example:

C#
Copy Code
using ImageGear.Formats;
using ImageGear.Formats.CGM;
using ImageGear.Formats.DWF;
using ImageGear.Formats.HPGL;
using ImageGear.Formats.SVG;
using ImageGear.Formats.U3D;
using ImageGear.Formats.PDF;
using ImageGear.Formats.Office;
ImGearFileFormats.Filters.Insert(0, ImGearCGM.CreateCGMFormat());
ImGearFileFormats.Filters.Insert(0, ImGearDWF.CreateDWFFormat());
ImGearFileFormats.Filters.Insert(0, ImGearHPGL.CreateHPGLFormat());
ImGearFileFormats.Filters.Insert(0, ImGearSVG.CreateSvgFormat());
ImGearFileFormats.Filters.Insert(0, ImGearU3D.CreateU3DFormat());
ImGearFileFormats.Filters.Insert(0, ImGearOffice.CreateWordFormat());
ImGearFileFormats.Filters.Insert(0, ImGearOffice.CreateExcelFormat());
ImGearFileFormats.Filters.Insert(0, ImGearOffice.CreatePowerPointFormat());
ImGearFileFormats.Filters.Insert(0, ImGearPDF.CreatePDFFormat());
ImGearFileFormats.Filters.Insert(0, ImGearPDF.CreatePSFFormat());
VB.NET
Copy Code
Imports ImageGear.Formats
Imports ImageGear.Formats.CGM
Imports ImageGear.Formats.DWF
Imports ImageGear.Formats.HPGL
Imports ImageGear.Formats.SVG
Imports ImageGear.Formats.U3D
ImGearFileFormats.Filters.Insert(0, ImGearCGM.CreateCGMFormat())
ImGearFileFormats.Filters.Insert(0, ImGearDWF.CreateDWFFormat())
ImGearFileFormats.Filters.Insert(0, ImGearHPGL.CreateHPGLFormat())
ImGearFileFormats.Filters.Insert(0, ImGearSVG.CreateSvgFormat())
ImGearFileFormats.Filters.Insert(0, ImGearU3D.CreateU3DFormat())
ImGearFileFormats.Filters.Insert(0, ImGearOffice.CreateWordFormat())
ImGearFileFormats.Filters.Insert(0, ImGearOffice.CreateExcelFormat())
ImGearFileFormats.Filters.Insert(0, ImGearOffice.CreatePowerPointFormat())
ImGearFileFormats.Filters.Insert(0, ImGearPDF.CreatePDFFormat())
ImGearFileFormats.Filters.Insert(0, ImGearPDF.CreatePSFFormat())