ImageEn, unit imageenproc |
|
TImageEnProc.ClearSel
Declaration
procedure ClearSel(ClearAlpha: Boolean = False);
Description
Fills the selected region with the
background color.
If
ClearAlpha is true, the
alpha channel is also cleared (set to the
Alpha value, where 0 means fully transparent and 255 fully opaque). Note: This option has no no effect if the bitmap does not contain an alpha channel.
Note:
◼If ClearAlpha is true an Alpha Channel will be added to the image
◼To remove the area outside the selection, use
CropSel
// Delete the selection and leave it as transparent
ImageEnView1.Proc.ClearSel(True);