Gorgon
Show / Hide Table of Contents

Class GorgonTgaDecodingOptions

Options used when decoding an image from a stream as a TGA file.

Inheritance
object
GorgonTgaDecodingOptions
Implements
IGorgonImageCodecDecodingOptions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Imaging.Codecs
Assembly: Gorgon.Graphics.Imaging.dll
Syntax
public class GorgonTgaDecodingOptions : IGorgonImageCodecDecodingOptions

Constructors

| Edit this page View Source

GorgonTgaDecodingOptions()

Initializes a new instance of the GorgonTgaDecodingOptions class.

Declaration
public GorgonTgaDecodingOptions()

Properties

| Edit this page View Source

Options

Property to return the list of options available to the codec.

Declaration
public IGorgonOptionBag Options { get; }
Property Value
Type Description
IGorgonOptionBag
| Edit this page View Source

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.

Implements

IGorgonImageCodecDecodingOptions

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author