See also: getting started, properties, methods, events, deployment
PixelType is an enumerated type used by EZTwainX to represent the type or format of pixels stored in an image. It is used to tell a scanner what kind of pixels to scan, and to describe the format of images.
The EZTwainx control has a property ScanType which designates the preferred pixel type for the next scan job. This property is also accessible as the Scan.PixelType property.
Both the main control and Image object have a property PixelType. This property represents the type of pixels stored in an image. The property of the control represents the corresponding property of the active image. Setting this property converts the image to the new pixel type.
Symbolic Name | Value | Meaning/Dimensions |
PT_NONE | -1 | |
PT_BW | 0 | Black & White images - 1 bit/pixel, also called Bitonal |
PT_GRAY | 1 | Grayscale images, normally 8 bits/pixel, representing 256 levels of gray. |
PT_RGB | 2 | RGB Color images, 24 bits/pixel. |
PT_PALETTE | 3 | Indexed color images, 8 bits/pixel. 256 colors stored in a color table in the image. |
PT_CMY | 4 | CMY=Cyan-Magenta-Yellow, an exotic 24-bit/pixel format. |
PT_CMYK | 5 | CMYK=Cyan-Magenta-Yellow-Black. Exotic 32 bit/pixel format. |