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

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_drwng_set_units(
        HIG_VECT_DRWNG hDrwng, 
        enumIGVectMeasurementUnits nUnits, 
        double fFactor
);

Arguments:

Name Type Description
hDrwng HIG_VECT_DRWNG Vector data handle.
nUnits enumIGVectMeasurementUnits Measurement units to be set.
fFactor double Units factor to be set.

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:

Gets measurement units associated with a drawing. The measurement units, combined with view size as returned by IG_vect_view_get_minmax, can be used to determine the physical size of the drawing.

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