Returns the number of bits in each image pixel (or bit depth). This is a runtime, read-only property.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
Remarks
24-bit RGB has BitsPerPixel = 24. 8-bit Grayscale has BitsPerPixel = 8. Black and White has BitsPerPixel = 1.
ImageBitsPerPixel property, along with other properties about information of the current image, is valid only in OnPreTransfer and OnPostTransfer event.
Exceptions
| Exception | Condition |
|---|---|
| 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. |