Flags Property (ILEADRasterBorderRemoveDoc)

Visual Basic example

Visual C++ example

 

Syntax

long Flags;

Overview

Refer to Using Imaging Common Dialogs

Remarks

Gets or sets the processing flags for the BorderRemove dialog box.

The Flags property determines the behavior of the border removal process. Flags may be combined using a bitwise OR. Possible values are:

Value

Meaning

BORDER_SINGLE_REGION

For each border found by the Border Remove dialog the removed border is added to an internal single region. When the Border Remove dialog ends, either the DocCleanBitmap property or the DocCleanRgn property will be set to a region that contains all the removed borders. If BORDER_LEAD_REGION is also set, the DocCleanBitmap property will be set to a bitmap that has a LEAD region that contains all the removed borders. If BORDER_LEAD_REGION is not set, DocCleanRgn is set to a Windows region that contains all the removed borders. When the region (either LEAD or Windows) is no longer needed, it must be destroyed.

BORDER_LEAD_REGION

When the Border Remove dialog ends, the DocCleanBitmap property is set to a bitmap that also contains a region with all the removed lines. This flag must be used in conjunction with BORDER_SINGLE_REGION. Pass BORDER_SINGLE_REGION Or BORDER_LEAD_REGION in the Flags parameter of. The DocCleanBitmap property will be set when the Border Remove dialog ends.

BORDER_IMAGE_UNCHANGED

The original image is unchanged.

BORDER_USE_VARIANCE

Consider border variance when performing border removal. If this flag is passed, the Variance property is used. If this flag is not passed, the Variance property is ignored.

See Also

Elements

ShowBorderRemoveDlg method