Table of Contents

Class TgaDecoder

Namespace
SixLabors.ImageSharp.Formats.Tga
Assembly
SixLabors.ImageSharp.dll

Image decoder for Truevision TGA images.

public sealed class TgaDecoder : ImageDecoder, IImageDecoder
Inheritance
TgaDecoder
Implements
Inherited Members

Properties

Instance

Gets the shared instance.

public static TgaDecoder Instance { get; }

Property Value

TgaDecoder

Methods

Decode(DecoderOptions, Stream, CancellationToken)

protected override Image Decode(DecoderOptions options, Stream stream, CancellationToken cancellationToken)

Parameters

options DecoderOptions
stream Stream
cancellationToken CancellationToken

Returns

Image

Decode<TPixel>(DecoderOptions, Stream, CancellationToken)

protected override Image<TPixel> Decode<TPixel>(DecoderOptions options, Stream stream, CancellationToken cancellationToken) where TPixel : unmanaged, IPixel<TPixel>

Parameters

options DecoderOptions
stream Stream
cancellationToken CancellationToken

Returns

Image<TPixel>

Type Parameters

TPixel

Identify(DecoderOptions, Stream, CancellationToken)

protected override ImageInfo Identify(DecoderOptions options, Stream stream, CancellationToken cancellationToken)

Parameters

options DecoderOptions
stream Stream
cancellationToken CancellationToken

Returns

ImageInfo