Unit

Description

Returns or sets the runtime unit of measurement for all quantities.

Data type

EnumDWT_UnitType (short)

Syntax

.Unit = EnumDWT_UnitType.TWUN_INCHES;

Remarks

Currently this property is only valid in Windows & Mac.

Use this property after OpenSource() and before AcquireImage().

Value Description
EnumDWT_UnitType.TWUN_INCHES (0) inches(Default Value)
EnumDWT_UnitType.TWUN_CENTIMETERS (1) centimeters
EnumDWT_UnitType.TWUN_PICAS (2) picas
EnumDWT_UnitType.TWUN_POINTS (3) points
EnumDWT_UnitType.TWUN_TWIPS (4) twips
EnumDWT_UnitType.TWUN_PIXELS (5) pixels
EnumDWT_UnitType.TWUN_MILLIMETERS (6) millimeters

When an error occurs, check ErrorCode or ErrorString for error information.

See also

SetImageLayout

Is this page helpful?

Leave a Reply

Your email address will not be published.