Class GorgonTgaDecodingOptions
Options used when decoding an image from a stream as a TGA file.
Implements
Inherited Members
Namespace: Gorgon.Graphics.Imaging.Codecs
Assembly: Gorgon.Graphics.Imaging.dll
Syntax
public class GorgonTgaDecodingOptions : IGorgonImageCodecDecodingOptions
Constructors
| Edit this page View SourceGorgonTgaDecodingOptions()
Initializes a new instance of the GorgonTgaDecodingOptions class.
Declaration
public GorgonTgaDecodingOptions()
Properties
| Edit this page View SourceOptions
Property to return the list of options available to the codec.
Declaration
public IGorgonOptionBag Options { get; }
Property Value
Type | Description |
---|---|
IGorgonOptionBag |
SetZeroAlphaAsOpaque
Property to set or return whether the to force alpha values of 0 in the image to be fully opaque.
Declaration
public bool SetZeroAlphaAsOpaque { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
Some TGA encoded images write out 32 bit images with an alpha value of 0 even though the image has fully opaque color data. This causes an image to appear to be completely transparent when it shouldn't be. Use this flag to force the image to set the alpha channel to fully opaque in such cases.
Note that this only works on images where all the alpha values are set to 0. If there is a mix of alpha values in the image, then this option will have no effect.
The default value is true.