Class ExrEncoder
- Namespace
- SixLabors.ImageSharp.Formats.Exr
- Assembly
- SixLabors.ImageSharp.dll
Image encoder for writing an image to a stream in the OpenExr Format.
public sealed class ExrEncoder : ImageEncoder, IImageEncoder
- Inheritance
-
ExrEncoder
- Implements
- Inherited Members
Properties
Compression
Gets the compression type to use.
public ExrCompression? Compression { get; init; }
Property Value
PixelType
Gets or sets the pixel type of the image.
public ExrPixelType? PixelType { get; set; }
Property Value
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
imageImage<TPixel>The Image<TPixel> to encode from.
streamStreamThe Stream to encode the image data to.
cancellationTokenCancellationTokenThe token to monitor for cancellation requests.
Type Parameters
TPixelThe pixel format.
Remarks
This method is designed to support the ImageSharp internal infrastructure and is not recommended for direct use.