ImageGear provides 3D vector graphics support. The vector data is stored as an internal object attached to HIGEAR image handle. Use the IG_image_is_vector function to check whether the image contains vector data.
Use regular image loading functions to load a vector image into ImageGear. See Loading Images for details.
Once you have a HIGEAR with vector data, you can display and print it, apply certain image processing operations, and save it to vector formats, using the same API that you use for raster images. See these sections for details:
When a vector image is loaded into HIGEAR, its DIB remains empty (it does not contain raster data). You can rasterize the vector image to be able to apply the whole set of raster image processing operations on it or save it to raster formats. Use IG_vector_data_to_dib for this.
ImageGear divides vector image formats into these major groups, which use different sets of API:
- Vector / CAD images. This API group allows accessing vector data for image formats such as DWG, DWF, XPS, CGM, SVG, and others. It allows you to show the vector data using different viewpoints, as well as to change scale factors, position, and rotation angles. Use the IG_image_is_CAD function to find out whether the image is a CAD/Vector image. See General Concepts of the ImageGear Vector API for details.
- PDF images. This API group allows accessing the features of PDF and PostScript images. Use the IG_image_is_PDF function to find out whether the image is a PDF image. See Advanced Image Formats > Adobe PDF for more details.
- XPS images. Use IG_image_is_XPS function to find out whether the image is a XPS image. ImageGear does not provide a separate API for the handling of these images.