typedef struct _IMAGEEFFECTS 
   L_UINT uStructSize; 
   L_INT nPixFlavor; 
   L_INT nColorScheme; 
   L_FLOAT fHighLight; 
   L_FLOAT fShadow; 
   L_FLOAT fBrightness; 
   L_FLOAT fContrast; 
   L_TCHAR szHalfTone[32]; 

The IMAGEEFFECTS structure provides information about the image effects.


L_UINT uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() operator to calculate this value.

L_INT nPixFlavor

Pixel flavor used when acquiring. Possible values are (according to the TWAIN specification):

Value Meaning
TWPF_CHOCOLATE Zero stands for the darkest shade.
TWPF_VANILLA Zero stands for the lightest shade.

L_INT nColorScheme

Color scheme to use when scanning is to be done. Possible values are (according to the TWAIN specification):

Value Meaning
TWPT_BW Black and White (1 bit).
TWPT_GRAY 8-bit Gray Scale
TWPT_RGB 24-bit RGB Color.
TWPT_PALETTE 8-bit Color.
TWPT_CMY CYAN, magenta, yellow color space.
TWPT_CMYK CYAN, magenta, yellow, black color space.
TWPT_YUV Color space type that is true color encoding. It uses one luminance value (Y) and two chroma values (UV).
TWPT_YUVK The same as YUV with an additional black variable.
TWPT_CIEXYZ Chromaticity diagram.

L_FLOAT fHighLight

Highlight value.

L_FLOAT fShadow

Shadow value.

L_FLOAT fBrightness

Brightness value.

L_FLOAT fContrast

Contrast value.

L_TCHAR szHalfTone

A string having the name of the used pattern.


pIMAGEEFFECTS is a pointer to an IMAGEEFFECTS structure. Where the function parameter type is pIMAGEEFFECTS, you can declare an IMAGEEFFECTS variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pIMAGEEFFECTS variable is necessary only if your program requires a pointer.

IMAGEEFFECTS is used with the LTWAINPROPERTIES structure.

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.