Table of Contents

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

byte

BitsPerPixel

Gets or sets the number of bits per pixel.

public TgaBitsPerPixel BitsPerPixel { get; set; }

Property Value

TgaBitsPerPixel

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

destination Image<TPixel>

The destination image .

matrix Matrix4x4

The transformation matrix applied to the image.

Type Parameters

TPixel

The 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

metadata FormatConnectingMetadata

The FormatConnectingMetadata.

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()

Returns

FormatConnectingMetadata

The FormatConnectingMetadata.