ImageGear for C and C++ on Windows v19.10 - Updated
ICAP_PIXELFLAVOR
User Guide > How to Work with... > Common Operations > Scanning > TWAIN Scanning > Set Scanning Capabilities > ICAP_PIXELFLAVOR

Data Type:

TW_UINT16

Purpose:

Sense of the pixel whose numeric value is zero (minimum data value). For example, consider a black and white image:

 
Copy Code
If ICAP_PIXELTYPE is TWPT_BW then
If ICAP_PIXELFLAVOR is TWPF_CHOCOLATE
then Black = 0
Else if ICAP_PIXELFLAVOR is TWPF_VANILLA
then White = 0

Sources may prefer a different value depending on ICAP_PIXELTYPE. Set ICAP_PIXELTYPE and do a MSG_GETDEFAULT to determine the Source's preferences.

Valid Values:

Default Value:

TWPF_CHOCOLATE