PAINTREGION

typedef struct _PAINTREGION 
{ 
   L_INT      nSize; 
   L_UINT32   dwMask; 
   COLORREF   crUpperTolerance; 
   COLORREF   crLowerTolerance; 
   L_INT      nRoundRectEllipseWidth; 
   L_INT      nRoundRectEllipseHeight; 
} PAINTREGION, *pPAINTREGION; 

The PAINTREGION structure holds information used for creating a region.

Member Description
nSize Size of this structure.
dwMask Flags that indicate which members contain valid information for the structure. Possible values are:
  Value Meaning
  PRF_ALL All the fields contain valid data.
  PRF_UPPERTOLERANCE The crUpperTolerance field contains valid data.
  PRF_LOWERTOLERANCE The crLowerTolerance field contains valid data.
  PRF_ROUNDRECTELLIPSEWIDTH The nRoundRectEllipseWidth field contains valid data.
  PRF_ROUNDRECTELLIPSEHEIGHT The nRoundRectEllipseHeight field contains valid data.
  The values can be combined using the bit-wise OR operator ( | )
crUpperTolerance COLORREF value that contains the amount of upper variance allowed from the selected color. Valid values are between 0 and 255. The values of R, G and B will be used to check the tolerance.
crLowerTolerance COLORREF value that contains the amount of lower variance allowed from the selected color. Valid values are between 0 and 255. The values of R, G and B will be used to check the tolerance.
nRoundRectEllipseWidth Value indicating the width, in pixels, of the ellipse used to create a round rectangle region. Valid values are 0 to 500.
nRoundRectEllipseHeight Value indicating the height, in pixels, of the ellipse used to create a round rectangle region. Valid values are 0 to 500.

Comments

The default values for this structure are:

nSize = sizeof (PAINTREGION)   
crUpperTolerance = RGB (0, 0, 0)   
crLowerTolerance = RGB (0, 0, 0)   
nRoundRectEllipseWidth = 0   
nRoundRectEllipseHeight = 0 

pPAINTREGION is a pointer to a PAINTREGION structure.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Digital Paint C API Help