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.

Member Description
uStructSize Size of the IMAGEEFFECTS structure, in bytes, for versioning. Use the sizeof() macro to calculate the value.
nPixFlavor Pixel flavor used when acquiring. Possible values are (according to the TWAIN 1.9 specification):
  Value Meaning
  TWPF_CHOCOLATE Zero stands for the darkest shade.
  TWPF_VANILLA Zero stands for the lightest shade.
nColorScheme Color scheme to use when scanning is to be done. Possible values are (according to the TWAIN 1.9 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.
fHighLight Highlight value.
fShadow Shadow value.
fBrightness Brightness value.
fContrast Contrast value.
szHalfTone 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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS TWAIN C++ Class Library Help