This property sets the number of bits per pixel in the scanned image. This property is only enabled when using a custom-built user interface (UiMode=2).
Property Value
When the Pixeltype property is 0 (ikScanPixelBW), the BitDepth is 1
When the Pixeltype property is 1 (ikScanPixelGray), the BitDepth is 4, 8, 12, 14, or 16
When the Pixeltype property is 2 (ikScanPixelRGB), the BitDepth is 24, 36, 42, or 48
When the Pixeltype property is 3 (ikScanPixelPalette), the BitDepth is 4 or 8
When the Pixeltype property is 1000 (ikScanPixelAutomation), the BitDepth is 24
Explanation
The BitDepth property sets the number of bits per pixel in the scanned image. This property is only enabled when the UiMode property is 2 (ikScanNONUI). Note: If a digital camera image or other scan device does not support this functionality, then this property is disabled.
To retrieve the range of possible bit depth settings for a scan device, execute the GetBitDepth or GetBitDepthVariant method. When scanning in 12, 14, 16, 36, 42, or 48 bit color, please set the TransferMode property to 2 (ikScanMemory). If an error is returned for a value that the scan device is supposed to support, please set 0 into the BitDepth property in which case the bit depth default value indicated by the PixelType property will be used.
Setting this value
This value can be set at runtime.
Retrieving this value
This value can be retrieved at runtime.