IMAGEEFFECTS

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]; 
} IMAGEEFFECTS,  * pIMAGEEFFECTS; 

The IMAGEEFFECTS structure provides information about the image effects.

Members

L_UINT uStructSize

Size of the IMAGEEFFECTS structure, in bytes, for versioning. Use the sizeof() operator to calculate the 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[32]

A string having the name of the used pattern.

Comments

pIMAGEEFFECTS is a pointer to a 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 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C++ Class Library Help