Available in the LEADTOOLS Imaging toolkit. |
Flags Property (ILEADRasterSmoothDoc)
long Flags; | |
Overview |
Refer to Using Imaging Common Dialogs |
Remarks
Gets or sets the processing flags for the Smooth dialog box.
This property determines the behavior of the smoothing process. Flags may be combined using a bitwise OR (|). Possible values are:
Value |
Meaning |
SMOOTH_SINGLE_REGION |
For each bump or nick found by the Smooth dialog the removed bump or nick is added to an internal single region. When the Smooth dialog ends, either the DocCleanBitmap or the DocCleanRgn properties will reference a region that contains all the removed bumps or nicks. If SMOOTH_LEAD_REGION is also set, the DocCleanBitmap will be updated with a bitmap that has a LEAD region that contains all the removed bumps or nicks. If SMOOTH_LEAD_REGION is not set, the DocCleanRgn property is set to a Windows region that contains all the removed nicks or bumps. When the region (either LEAD or Windows) is no longer needed, it must be destroyed. |
SMOOTH_LEAD_REGION |
When the Smooth dialog ends, the DocCleanBitmap property is updated with a copy of the bitmap that also contains a region with all the removed bumps or nicks. This flag must be used in conjunction with SMOOTH_SINGLE_REGION. To use this flag set Flags to SMOOTH_SINGLE_REGION | SMOOTH_LEAD_REGION. The DocCleanBitmap property will be updated when the Smooth dialog ends. |
SMOOTH_IMAGE_UNCHANGED |
The original image is unchanged. |
SMOOTH_FAVOR_LONG |
Processes long bumps or nicks before short bumps or nicks. If this flag is not passed, short is favored over long. For example: |
|
Smooth the following image with Length == 3 |
|
X X |
|
XXXXXXXXXX |
|
Favoring short would remove the two "bumps" giving: |
|
XXXXXXXXXX |
|
Favoring long would fill in the "gap" giving: |
|
XXXXX |
|
XXXXXXXXXX |
See Also
Elements |
ShowSmoothDlg method, ShowInvertTextDlg method, ShowDotRemoveDlg method, ShowHolePunchRemoveDlg method |