ImageEN Painter Help

Transparency

Transparency in ImageEN Painter is obtained from the bottom left pixel of the image when the image is loaded.

RGB := IEBitmap.Pixels [ 0, IEBitmap.Height - 1 ];
fTransparentColor := TRGB2TColor ( RGB );
if ( IO.Params.BitsPerSample = 8 ) and ( IO.Params.SamplesPerPixel = 4 ) then
  ImageEnView1.Proc.SetTransparentColors ( RGB, RGB, 0 );

Erasing Pixels

If the image is a 32-bit the images transparent color obtained from the bottom left pixel of the image when the image is loaded is used to erase pixels.  If the image is not 32-bit the clWhite color is used for erasing.