ImageEn, unit imageenview

TImageEnView.SelectShape

TImageEnView.SelectShape


Declaration

procedure SelectShape(Left, Top, Right, Bottom: integer;
                      Shape: TIEShape; ShapeAngle: Integer = 0; ShapeModifier: Integer = 0;
                      Op: TIESelOp = iespReplace);


Description

Creates a polygonal selection using one of ImageEn's vector shapes.

Left, Top, Right, Bottom are the selection bounds.
Shape specifies the selection shape, which can be modified using ShapeModifier and ShapeAngle.
Op specifies whether to add a new selection (iespAdd) or replace the current one (iespReplace).

The style of selection are specified by:
SelColor1
SelColor2
SetSelectionGripStyle

Note:
SelectShape creates a "vectorized" selection (the selection will be made up of a series of lines and can be accessed via PolySel)
You can allow your user to make a shaped selection by enabling SelectionShape


Example

ImageEnView1.SelectShape( 100, 100, 250, 250, iesExplosion );



Other Selection Methods

Select
SelectEllipse
SelectMagicWand
SelectChromaKey
SelectRoundRect


See Also

InvertSelection
Deselect