ImageEn, unit iexBitmaps

TIEMask.SetEllipse

TIEMask.SetEllipse


Declaration

procedure SetEllipse(CenterX, CenterY, Width, Height: integer; Alpha: integer);


Description

Set an elliptical selection. A pixel with mask 1 or >0 is selected.

Parameter Description
CenterX Ellipse horizontal center
CenterY Ellipse vertical center
Width Ellipse width
Height Ellipse height
Alpha Alpha value (0 = not selected, >0 selected)


Example

// Select an ellipse (10, 10 - 14, 14)
ImageEnView1.SelectionMask.SetEllipse(10, 10, 14, 14);
ImageEnView1.SelectCustom();