ImageEn, unit iexBitmaps

TIOParams.ICO_Background

TIOParams.ICO_Background


Declaration

property ICO_background: TRGB;


Description

Specifies the color that is used for transparency (i.e. becomes the image background) when loading icon files.

Default: (255, 255, 255), i.e. white

Note: This property must be set before loading. It is not used when saving because only the image's alpha channel is used for transparency. To make a color transparent you use SetTransparentColors before saving.


Example

// Reading
ImageEnView1.IO.Params.ICO_Background := CreateRGB(255, 255, 255);
ImageEnView1.IO.LoadFromFileICO('D:\myicon.ico');

// Writing example
ImageEnView1.Proc.SetTransparentColors(transparent_color, transparent_color, 0);
ImageEnView1.IO.SaveToFileICO('D:\myicon.ico');


See Also

 CreateRGB
 TRGB2TColor
 TColor2TRGB