ImageEn, unit iexBitmaps

TIEMask.SetRectangle

TIEMask.SetRectangle


Declaration


procedure SetRectangle(Rect: TRect; Alpha: integer);
procedure SetRectangle(x1, y1, x2, y2: integer; Alpha: integer);


Description


Set a rectanglular selection. A pixel with mask 1 or >0 is selected.

Parameter Description
Rect Rectangle to select.
Alpha Alpha value (0 = not selected, >0 selected).



Example


// Select rectangle (10, 10 - 14, 14)
ImageEnView1.SelectionMask.SetRectangle(Rect(10, 10, 14, 14), 1);
ImageEnView1.SelectCustom();