Dynamsoft Home|Product Home

Unit Property

Description

Returns or sets the unit of measure. This is a runtime property.

Data type

short

Syntax

ObjectName. Unit

Remarks

Allowed Values

Unit

0

INCHES

1

CENTIMETERS

2 PICAS
3 POINTS
4 TWIPS
5 PIXELS

Using this property after calling OpenSource() method and before calling AcquireImage().

When an error occurs and IfThrowException property is TRUE, an exception will be thrown. Check ErrorCode property and ErrorString property for error information.