Table of Contents

Class AniEncoder

Namespace
SixLabors.ImageSharp.Formats.Ani
Assembly
SixLabors.ImageSharp.dll

Encodes images as Windows animated cursors.

public sealed class AniEncoder : QuantizingImageEncoder, IImageEncoder, IQuantizingImageEncoder
Inheritance
AniEncoder
Implements
Inherited Members

Constructors

AniEncoder()

Initializes a new instance of the AniEncoder class.

public AniEncoder()

Methods

Encode<TPixel>(Image<TPixel>, Stream, CancellationToken)

Encodes the image to the specified stream from the Image<TPixel>.

protected override void Encode<TPixel>(Image<TPixel> image, Stream stream, CancellationToken cancellationToken) where TPixel : unmanaged, IPixel<TPixel>

Parameters

image Image<TPixel>

The Image<TPixel> to encode from.

stream Stream

The Stream to encode the image data to.

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Type Parameters

TPixel

The pixel format.

Remarks

This method is designed to support the ImageSharp internal infrastructure and is not recommended for direct use.