ImageEn, unit imageenview |
|
TImageEnView.SetSelectionMarkOuterStyle
TImageEnView.SetSelectionMarkOuterStyle
Declaration
procedure SetSelectionMarkOuterStyle(Alpha: Integer; Color: TColor; LiveUpdate: Boolean = False);
Description
When
SelectionOptions is
iesoMarkOuter, this method specifies how the outer area will be drawn.
If Alpha = -1 (default) a gray grid is displayed.
If Alpha >= 0 and <= 255 a solid color is painted.
Color is the blend color.
if
LiveUpdate is enabled then the outer marking will be shown while dragging, otherwise only when selection has completed (mouse up). Note: Enabling this option will lower performance
Defaults:
Alpha : -1
Color : clWhite
LiveUpdate: False
// Areas outside the selection will be marked with red (with 50% transparency)
ImageEnView1.SelectionOptions := ImageEnView1.SelectionOptions + [iesoMarkOuter];
ImageEnView1.SetSelectionMarkOuterStyle(128, clRed);
// Enable live drawing of outer while selecting
ImageEnView1.SetSelectionMarkOuterStyle(-1, clWhite, True);