All Projects → NUlliiON → QoiSharp

NUlliiON / QoiSharp

Licence: MIT license
QoiSharp is an implementation of the QOI https://github.com/phoboslab/qoi

Programming Languages

C#
18002 projects

QoiSharp
QoiSharp

Project status: active. What does it mean?

QoiSharp is an implementation of the QOI format for fast, lossless image compression

Supported functionality:

  • Encoding
  • Decoding

Installation

Install stable releases via Nuget

Package Name Release (NuGet)
QoiSharp NuGet

API

Encoding

byte[] data = GetRawPixels();
int width = 1920;
int height = 1080;
var channels = Channels.RgbWithAlpha;
byte[] qoiData = QoiEncoder.Encode(new QoiImage(data, width, height, channels));

Decoding

var qoiImage = QoiDecoder.Decode(qoiData);
Console.WriteLine($"Width: {qoiImage.Width}");
Console.WriteLine($"Height: {qoiImage.Height}");
Console.WriteLine($"Channels: {qoiImage.Channels}");
Console.WriteLine($"Color space: {qoiImage.ColorSpace}");
Console.WriteLine($"Data length: {qoiImage.Pixels.Length}");

Example Usage

Click here

TODOs

  • Streams
  • Benchmarks
  • CLI

License

QoiSharp is licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].