ImageEn, unit imageenview

TImageEnView.SelectNonAlpha

TImageEnView.SelectNonAlpha


Declaration

procedure SelectNonAlpha(Op: TIESelOp = iespReplace);


Description

Selects all pixels based on the alpha channel. Pixels of Alpha value 0 will be unselected, 255 will be selected, and 1 - 254 partially selected.
If Op is iespReplace the region replaces the existing selection, otherwise if Op is iespAdd, the region is appended to the existing selection.

Note: A bitmap/non-vector selection is used. You can use IsPointInsideSelection to determine whether specific pixels are selected.


Example

// Load a transparent PNG file and select the non-alpha pixels
ImageEnView1.IO.LoadFromFile( 'D:\Transparent.png' );
ImageEnView1.SelectNonAlpha();


See Also

SelectColors