DTwainAcquirer::SetColorType

Top  Previous  Next

Syntax

 

DTwainAcquirer& DTwainAcquirer::SetColorType( DTwainColorType ColorType );

 

Parameters

ColorType

 

Sets the DTwainColorType thatAcquireType that describes describes the type of color used when acquiring images.

 

Return Value

Returns reference to current DTwainAcquirer object (*this).

 

 

 

Comments

 

 

The DTwainColorType can be one of the following:

 

Color Type

Description

DTwainColorType::COLORTYPE_DEFAULT

Use Twain device's default color setting

DTwainColorType::COLORTYPE_BW

Use black and white color for acquired images (used for acquiring 1 bit-per-pixel b/w images)

DTwainColorType::COLORTYPE_RGB

Use RGB color for acquired images (used for acquiring gray-scale and most color images).

DTwainColorType::COLORTYPE_PALETTE

Use Palette color for acquired images.

DTwainColorType::COLORTYPE_CMYK

Use CMYK color for acquired images

DTwainColorType::COLORTYPE_YUV

Use YUV color for acquired images

DTwainColorType::COLORTYPE_YUVK

Use YUVK color for acquired images.

DTwainColorType::COLORTYPE_CIEXYZ

Use CIEXYZ color for acquired images.

 

Note that the Twain Source must support the color type specified.  If not, then the default color type will be used.  To test for the various color types, call DTwainSource::EnumColorTypes.