<< Click to Display Table of Contents >> VpeSetUnitTransformation |
Specifies the coordinate system in which the API of VPE handles coordinates. The coordinate system of VPE can either be in centimeter or inch units, as well as the old (prior to v4.0) 0.1mm units.
Internally, VPE computes object positions and dimensions with a precision of 1/10.000 mm.
void VpeSetUnitTransformation(
VpeHandle hDoc,
double factor
)
VpeHandle hDoc
Document Handle
double factor
Constant |
Value |
Description |
VUNIT_FACTOR_CM |
100000 |
coordinates are handled in cm units by the VPE API |
VUNIT_FACTOR_INCH |
254000 |
coordinates are handled in inch units by the VPE API |
VUNIT_FACTOR_MM10 |
1000 |
coordinates are handled in 1/10 of a mm by the VPE API |
Remarks:
Setting this property does not affect the ruler’s unit measurement of the preview. To change the units of the rulers, use VpeSetRulersMeasure().