Declaration
procedure Assign(Source: TIEMask); overload;
procedure Assign(Source: TIEBitmap; AdaptSource: Boolean = True); overload;
Description
Assigns
Source mask or creates a mask from a TIEBitmap.
If
AdaptSource is True, then resulting mask maintains previous size and pixel format.
Note: When creating a mask from a TIEBitmap, the image is reduced to 8bit gray scale and the intensity of each pixel determines the selection mask value.
// Select the non-alpha areas of an image
// Same as TImageEnView.SelectNonAlpha
ImageEnView1.SelectionMask.Assign( ImageEnView1.AlphaChannel );
ImageEnView1.SelectCustom();