ImageEn, unit imageenview |
|
TImageEnView.SetAlphaRangePixelsColor
TImageEnView.SetAlphaRangePixelsColor
Declaration
procedure SetAlphaRangePixelsColor(AlphaMin, AlphaMax: Integer; color: TRGB);
Description
Sets all pixels that have an alpha channel value between AlphaMin and AlphaMax to the specified color.
Example
// this example loads an image with alpha channel, then paints all transparent pixels (0...254 alpha values) using White color, finally saves in a jpeg where we cannot save the alpha channel.
ImageEnView.IO.LoadFromFile('C:\test.png');
ImageEnView.SetAlphaRangePixelsColor(0, 254, CreateRGB(255, 255, 255));
ImageEnView.IO.SaveToFile('C:\output.jpg');
See Also
◼ CreateRGB◼ TRGB2TColor◼ TColor2TRGB