Table of Contents

Class QoiMetadata

Namespace
SixLabors.ImageSharp.Formats.Qoi
Assembly
SixLabors.ImageSharp.dll

Provides Qoi specific metadata information for the image.

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

Constructors

QoiMetadata()

Initializes a new instance of the QoiMetadata class.

public QoiMetadata()

Properties

Channels

Gets or sets color channels of the image. 3 = RGB, 4 = RGBA.

public QoiChannels Channels { get; set; }

Property Value

QoiChannels

ColorSpace

Gets or sets color space of the image. 0 = sRGB with linear alpha, 1 = All channels linear

public QoiColorSpace ColorSpace { get; set; }

Property Value

QoiColorSpace

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

public QoiMetadata DeepClone()

Returns

QoiMetadata

The QoiMetadata.

FromFormatConnectingMetadata(FormatConnectingMetadata)

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

public static QoiMetadata FromFormatConnectingMetadata(FormatConnectingMetadata metadata)

Parameters

metadata FormatConnectingMetadata

The FormatConnectingMetadata.

Returns

QoiMetadata

The QoiMetadata.

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.