User Guide > How to Work with... > Formats with Additional Functionality > 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.CAD; using ImageGear.Formats.CGM; using ImageGear.Formats.DGN; 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, ImGearDGN.CreateDGNFormat()); ImGearFileFormats.Filters.Insert(0, ImGearDWF.CreateDWFFormat()); ImGearFileFormats.Filters.Insert(0, ImGearCAD.CreateDWGFormat()); ImGearFileFormats.Filters.Insert(0, ImGearCAD.CreateDXFFormat()); 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.CAD Imports ImageGear.Formats.CGM Imports ImageGear.Formats.DGN 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, ImGearDGN.CreateDGNFormat()) ImGearFileFormats.Filters.Insert(0, ImGearDWF.CreateDWFFormat()) ImGearFileFormats.Filters.Insert(0, ImGearCAD.CreateDWGFormat()) ImGearFileFormats.Filters.Insert(0, ImGearCAD.CreateDXFFormat()) 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()) |