This property sets the method used to reduce the bit depth when scanning in 1 bit color. This property is only enabled when using a custom-built user interface.
[TVIkBitDepthReduction Type]
Unit
ImageKit
type
TVIkBitDepthReduction =
(vikBitDepthReductionThreshold, vikBitDepthReductionHalftone,
vikBitDepthReductionCustomHalftone, vikBitDepthReductionDiffusion,
vikBitDepthReductionDynamicThreshold);
Property Value
Value | Explanation |
---|---|
vikBitDepthReductionThreshold | threshold value |
vikBitDepthReductionHalftone | halftone |
vikBitDepthReductionCustomHalftone | custom halftone *1 |
vikBitDepthReductionDiffusion | diffusion |
vikBitDepthReductionDynamicThreshold | dynamic threshold |
*1 This is a TWAIN setting that is not supported by the ImageKit9VCL.
Explanation
The BitDepthReduction property sets the method used to reduce the bit depth when scanning in 1 bit color. This property is enabled when the UiMode property is vikScanNONUI and the PixelType property is vikScanPixelBW. Note: The BitDepthReduction property is disabled when using a digital camera.
When the BitDepthReduction property is vikBitDepthReductionThreshold, the Threshold property is enabled (In some scan devices the Brightness property is enabled). When the BitDepthReduction property is vikBitDepthReductionHalftone, the HalfTone, Brightness, and Contrast properties are enabled.
To retrieve the value of the BitDepthReduction property that is supported by the scan device, please execute the GetCapEnumToFloat method. In the case where the scan device does not support the BitDepthReduction functionality, but supports either Threshold or HalfTone, then set this property to vikBitDepthReductionThreshold or vikBitDepthReductionHalftone whichever the case may be.
Setting this value
This value can be set at runtime.
Retrieving this value
This value cannot be retrieved.
Differences between the ImageKit7/8/9
In VCL the constants contain a "v". In ActiveX, the constants are: ikBitDepthReductionThreshold, ikBitDepthReductionHalftone, ikBitDepthReductionCustomHalftone, ikBitDepthReductionDiffusion, ikBitDepthReductionDynamicThreshold.