Table of Contents

Class ExrMetadata

Namespace
SixLabors.ImageSharp.Formats.Exr
Assembly
SixLabors.ImageSharp.dll

Provides OpenExr specific metadata information for the image.

public class ExrMetadata : IFormatMetadata<ExrMetadata>, IFormatMetadata, IDeepCloneable, IDeepCloneable<ExrMetadata>
Inheritance
ExrMetadata
Implements
Inherited Members

Constructors

ExrMetadata()

Initializes a new instance of the ExrMetadata class.

public ExrMetadata()

Properties

Compression

Gets or sets the compression method.

public ExrCompression Compression { get; set; }

Property Value

ExrCompression

ImageDataType

Gets or sets the image data type, either RGB, RGBA or gray.

public ExrImageDataType ImageDataType { get; set; }

Property Value

ExrImageDataType

PixelType

Gets or sets the pixel format.

public ExrPixelType PixelType { get; set; }

Property Value

ExrPixelType

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 object that is a deep copy of the current instance.

public IDeepCloneable DeepClone()

Returns

IDeepCloneable

The IDeepCloneable.

FromFormatConnectingMetadata(FormatConnectingMetadata)

Creates a new instance of the ExrMetadata class from the given FormatConnectingMetadata.

public static ExrMetadata FromFormatConnectingMetadata(FormatConnectingMetadata metadata)

Parameters

metadata FormatConnectingMetadata

The FormatConnectingMetadata.

Returns

ExrMetadata

The ExrMetadata.

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.