PAINTDLGREGIONINFO

Summary

The PAINTDLGREGIONINFO structure contains information about the Region dialog.

Syntax

typedef struct _PAINTDLGREGIONINFO 
{ 
   L_INT nSize; 
   L_INT32 dwFlags; 
   L_TCHAR * pszTitle; 
   COLORREF crUpperTolerance; 
   COLORREF crLowerTolerance; 
   L_INT nRoundRectEllipseWidth; 
   L_INT nRoundRectEllipseHeight; 
} PAINTDLGREGIONINFO, *pPAINTDLGREGIONINFO ; 

Members

nSize

Size of this structure.

dwFlags

User interface flags for the dialog. Determines the layout and action of the dialog. Possible values are:

Setting Description
PAINT_DLG_REGION_SHOWALL [0x00000001] Show all controls.
PAINT_DLG_REGION_SHOWLOWERTOLERANCE [0x00000002] Show Lower tolerance control.
PAINT_DLG_REGION_SHOWUPPERTOLERANCE [0x00000004] Show Upper tolerance control.
PAINT_DLG_REGION_SHOWELLIPSEWIDTH [0x00000008] Show Ellipse width control.
PAINT_DLG_REGION_SHOWELLIPSEHEIGHT [0x00000010] Show Ellipse height control.
PAINT_DLG_REGION_SHOWDEFAULT [0x00000020] Show Default control.
PAINT_DLG_REGION_INITUSEDEFAULT [0x00000040] Use the initial default values for the dialog control.

pszTitle

Character string containing the Dialog box caption text.

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

An image of the Region dialog can be seen below.

image\a4.gif

Usage

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

LEADTOOLS Digital Paint C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.