This sets the units of measurement when scanning with a custom built user interface.

[C++Builder]   imagekitcontrolname->Scan->UnitMode[ = TVIkScanUnit ]
[Delphi]   imagekitcontrolname.Scan.UnitMode[ = TVIkScanUnit ]

[TVIkScanUnit Type]

Unit
     IkInit

type
     TVIkScanUnit = (vikScanInch, vikScanCM, vikScanPica, vikScanPoint, vikScanTwip, vikScanPixel, vikScanMillimeter);

Property Value

Value Explanation
vikScanInch Inches (Default value)
vikScanCM Centimeters
vikScanPica Pica
vikScanPoint Points
vikScanTwip Twips
vikScanPixel Pixels
vikScanMillimeter Millimeters

Explanation

The UnitMode sets the units of measurement used to set the scanning area. The default value is vikScanInch. This property is enabled when the UiMode is vikScanNONUI. The RectLeft, RectTop, RectRight, and RectBottom property values will use the unit of measurement set in the UnitMode property. When the UnitFlag property is 0, the scan device must support the unit of measurement set in the UnitMode property.

Although the UnitMode property is disabled when the UiMode is NOT vikScanNONUI, when scanning, the units of measurement of the scan are returned to this property. To retrieve the values of the UnitMode property supported by the scan device, execute the GetCapEnumToFloat method.

Setting this value

This value can be set at runtime.

Retrieving this value

This value can be retrieved at runtime.

Differences between the ImageKit7/8/9/10

In VCL the constants contain a "v". In ActiveX, the constants are: ikScanInch, ikScanCM, ikScanPica, ikScanPoint, ikScanTwip, ikScanPixel, ikScanMillimeters

The parameter name vikScanMillimeters has been changed to vikScanMillimeter

 

The ImageKit10 VCL is a product created by Newtone Corporation