Dynamsoft Home|Product Home

ImagePixelType Property

Description

Returns the pixel type of the current image. This is a runtime, read-only property.

Data type

Enumerated Value / Integer

Value Description
TWPT_BW(0) Black and White
TWPT_GRAY(1) Grayscaled 
TWPT_RGB(2 ) RGB

Syntax

ObjectName. ImagePixelType

Remarks

ImagePixelType 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

ImageBitsPerPixel property, ImageLength property, ImageWidth property, ImageXResolution property, ImageYResolution property