Click or drag to resize

PngDecoderSetAlphaFromTransparentColor Property

Indicates whether or not the PngDcoder should set the alpha channel in the image using the Png file's transparent color.

Namespace:  Atalasoft.Imaging.Codec
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: (.NET 4.5.2, x86)
public bool SetAlphaFromTransparentColor { get; set; }

Property Value

Type: Boolean
Returns true if the decoder should set the alpha channel, false otherwise. Default value is false.
GetImageInfo will always return the pixel format appropriate to the file without alpha. If the SetAlphaFromTransparentColor is true, the returned image may be in a different pixel format. For example, an image with a pixel format of Pixel24BppBgr will be Pixel32BppBgra if SetAlphaFromTransparentColor is true and there is a transparent color in the png.
See Also