Hi Yogi,
use: TImageEnView.SelectCustom
Example:
for y := 0 to ImageEnView1.IEBitmap.Height - 1 do
for x := 0 to ImageEnView1.IEBitmap.Width - 1 do
begin
color := ImageEnView1.IEBitmap.Pixels[x, y];
if ( color = clBlue ) or ( color = clGreen ) then
begin
ImageEnView.SelectionMask.SetPixel(X, Y, 255);
ImageEnView.SelectCustom();
end;
end;
Klaus
www.klausdoege.de