User Guide > How to Work with... > 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 |
---|---|
//Placed at start of source file. using ImageGear.Vector; using ImageGear.Formats; using ImageGear.Formats.CAD; using ImageGear.Formats.HPGL; using ImageGear.Formats.DGN; using ImageGear.Formats.CGM; |
C# |
Copy Code |
---|---|
//Placed during application load.
ImGearFileFormats.Filters.Add(ImGearCAD.CreateDWGFormat());
ImGearFileFormats.Filters.Add(ImGearCAD.CreateDXFFormat());
ImGearFileFormats.Filters.Add(ImGearHPGL.CreateHPGLFormat());
ImGearFileFormats.Filters.Add(ImGearDGN.CreateDGNFormat());
ImGearFileFormats.Filters.Add(ImGearCGM.CreateCGMFormat()); |