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

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public TWICapUNits Unit { get; set; }
Visual Basic
Public Property Unit As TWICapUNits
	Get
	Set

Remarks

Allowed ValuesUnit
0INCHES
1CENTIMETERS
2PICAS
3POINTS
4TWIPS
5PIXELS
Using this property after calling OpenSource() method and before calling AcquireImage().

Exceptions

ExceptionCondition
Dynamsoft.DotNet.TWAIN..::..TwainException When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString.

See Also