Class TgaMetadata
- Namespace
- SixLabors.ImageSharp.Formats.Tga
- Assembly
- SixLabors.ImageSharp.dll
Provides TGA specific metadata information for the image.
public class TgaMetadata : IFormatMetadata<TgaMetadata>, IFormatMetadata, IDeepCloneable, IDeepCloneable<TgaMetadata>
- Inheritance
-
TgaMetadata
- Implements
- Inherited Members
Constructors
TgaMetadata()
Initializes a new instance of the TgaMetadata class.
public TgaMetadata()
Properties
AlphaChannelBits
Gets or sets the number of alpha bits per pixel.
public byte AlphaChannelBits { get; set; }
Property Value
BitsPerPixel
Gets or sets the number of bits per pixel.
public TgaBitsPerPixel BitsPerPixel { get; set; }
Property Value
Methods
AfterImageApply<TPixel>(Image<TPixel>, Matrix4x4)
This method is called after a process has been applied to the image.
public void AfterImageApply<TPixel>(Image<TPixel> destination, Matrix4x4 matrix) where TPixel : unmanaged, IPixel<TPixel>
Parameters
destinationImage<TPixel>The destination image .
matrixMatrix4x4The transformation matrix applied to the image.
Type Parameters
TPixelThe type of pixel format.
DeepClone()
Creates a new TgaMetadata that is a deep copy of the current instance.
public TgaMetadata DeepClone()
Returns
- TgaMetadata
The TgaMetadata.
FromFormatConnectingMetadata(FormatConnectingMetadata)
Creates a new instance of the TgaMetadata class from the given FormatConnectingMetadata.
public static TgaMetadata FromFormatConnectingMetadata(FormatConnectingMetadata metadata)
Parameters
metadataFormatConnectingMetadata
Returns
- TgaMetadata
The TgaMetadata.
GetPixelTypeInfo()
Converts the metadata to a PixelTypeInfo instance.
public PixelTypeInfo GetPixelTypeInfo()
Returns
- PixelTypeInfo
The pixel type info.
ToFormatConnectingMetadata()
Converts the metadata to a FormatConnectingMetadata instance.
public FormatConnectingMetadata ToFormatConnectingMetadata()