Dynamsoft Home|Product Home

ImageBitsPerPixel Property

Description

The number of bits in each image pixel (or bit depth). This is a runtime, read-only property.

Data type

Integer

Syntax

ObjectName. ImageBitsPerPixel

Remarks

24-bit R-G-B has BitsPerPixel = 24. 8-bit Grayscale has BitsPerPixel = 8. Black and White has BitsPerPixel = 1.

ImageBitsPerPixel property, along with other properties about the current image information, is valid only in OnPreTransfer and OnPostTransfer event.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown. Check ErrorCode property and ErrorString property for error information.

See also

ImagePixelType property, ImageLength property, ImageWidth property, ImageXResolution property, ImageYResolution property