DTWAIN Pixel Type Constants

Top  Previous  Next

The DTWAIN Acquisition functions, DTWAIN_GetPixelType, DTWAIN_EnumPixelTypes, and DTWAIN_SetPixelType functions use the following constants to define the various pixel types (colors) that TWAIN defines for acquiring an image:

 

Pixel Type

Definition

Value




DTWAIN_PT_BW                

Black and White

0

DTWAIN_PT_GRAY        

Gray        

1

DTWAIN_PT_RGB                

Red-Green-Blue

2

DTWAIN_PT_PALETTE        

Use Color Palette

3

DTWAIN_PT_CMY                

CMY Data        

4

DTWAIN_PT_CMYK

CMYK Data        

5

DTWAIN_PT_YUV        

YUV Data

6

DTWAIN_PT_YUVK        

YUVK Data        

7

DTWAIN_PT_CIEXYZ

CIE XYZ Data        

8

DTWAIN_PT_DEFAULT

Source's default

1000