ImageGear for C and C++ on Windows v20.3 - Updated
IG_vect_drwng_get_units
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Drawing Functions > IG_vect_drwng_get_units

Gets measurement units associated with a drawing.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_drwng_get_units(
        HIG_VECT_DRWNG hDrwng, 
        enumIGVectMeasurementUnits* lpUnits, 
        double* lpFactor 
);

Arguments:

Name Type Description
hDrwng HIG_VECT_DRWNG Vector data handle.
lpUnits enumIGVectMeasurementUnits* Measurement units returned.
lpFactor double* Units factor returned.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

The measurement units, combined with view size as set by IG_vect_view_set_minmax, can be used to define the physical size of the drawing.

Is this page helpful?
Yes No
Thanks for your feedback.