ImageInfo.BitsPerPixel Property |
Namespace: Kofax.OmniPageCSDK.IproPlus
Possible values are:
Value | Description |
---|---|
ITYPE_BW | This is a Black-and-white (B/W) image with BLACK=1 and WHITE=0. Every byte represents 8 pixels starting at the most significant bit. |
ITYPE_GRAY4 | This is a 4-bit grayscale image with BLACK=0 and WHITE=15. Every byte represents 2 pixels: the upper 4 bits contain the first pixel, the lower 4 bits contain the second one. |
ITYPE_8BIT | This value identifies one of two possible cases: the image is either an 8-bit grayscale image or it is a palette-color image. Every byte represents 1 pixel of the image. To distinguish the grayscale and the palette-color cases, use the Paletted property of the ImageFile object. For 8-bit grayscale image BLACK=0 and WHITE=255. For palette-color images, the colors of the image are defined in a palette. They can be set / inquired through the Paletted method of the ImageFile object. |
ITYPE_TRUECOLOR | This is a 24-bit (3*8) true-color image with BLACK=(0,0,0) and WHITE=(255,255,255). Every pixel has three 8-bit components: Red, Green, and Blue in this order. |