Vcl.Imaging.pngimage.TPngImage.TransparentColor
Delphi
property TransparentColor: TColor read GetTransparentColor write SetTransparentColor;
C++
__property System::Uitypes::TColor TransparentColor = {read=GetTransparentColor, write=SetTransparentColor, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Imaging.pngimage.pas Vcl.Imaging.pngimage.hpp |
Vcl.Imaging.pngimage | TPngImage |
Description
Determines which color of the png image will be transparent when the image is drawn.
Use the TransparentColor to determine how to draw the image transparently. Changing the transparent color using the TransparentColor property causes an exception to be thrown if the png image has an alpha channel associated with it.
If the png image does not have an alpha channel, then setting a transparent color causes the TransparencyMode property to become ptmBit.