Table of Contents

Class QoiWriterOptions

Namespace
Egami.Formats.Qoi
Assembly
Egami.dll

Options for writing QOI.

public sealed class QoiWriterOptions : WriterOptions
Inheritance
QoiWriterOptions
Inherited Members

Examples

// 3 channels when every pixel is opaque, 4 otherwise. The bytes match the reference encoder's.
image.Save("duck.qoi");
image.Save("duck-rgba.qoi", new QoiWriterOptions { IncludeAlpha = true });

Properties

Default

Gets the default options.

public static QoiWriterOptions Default { get; }

Property Value

QoiWriterOptions

IncludeAlpha

Gets whether to write 4 channels (true) or 3 (false, which drops alpha). Defaults to null: 3 channels when every pixel is opaque, else 4.

public bool? IncludeAlpha { get; init; }

Property Value

bool?