The PAINTREGION structure holds information used for creating a region.
Size of this structure.
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 ( | )
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.
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.
Value indicating the width, in pixels, of the ellipse used to create a round rectangle region. Valid values are 0 to 500.
Value indicating the height, in pixels, of the ellipse used to create a round rectangle region. Valid values are 0 to 500.
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.