Class GifEncoder
- Namespace
- SixLabors.ImageSharp.Formats.Gif
- Assembly
- SixLabors.ImageSharp.dll
Image encoder for writing image data to a stream in gif format.
public sealed class GifEncoder : QuantizingImageEncoder, IImageEncoder
- Inheritance
-
GifEncoder
- Implements
- Inherited Members
Constructors
GifEncoder()
public GifEncoder()
Properties
ColorTableMode
Gets the color table mode: Global or local.
public GifColorTableMode? ColorTableMode { get; init; }
Property Value
Methods
Encode<TPixel>(Image<TPixel>, Stream, CancellationToken)
protected override void Encode<TPixel>(Image<TPixel> image, Stream stream, CancellationToken cancellationToken) where TPixel : unmanaged, IPixel<TPixel>
Parameters
image
Image<TPixel>stream
StreamcancellationToken
CancellationToken
Type Parameters
TPixel