QOI class

Represents the information found inside a QOI image, whether the image is QOI formatted yet, or not

Can be constructed from a:

Can be converted to a:

  • raw binary file, with the toRaw method
  • PNG image, with the toPNG method
  • QOI image, with the toQOI method
Available Extensions

Constructors

QOI.fromRaw({required Uint8List bytes, required int width, required int height, Channels channels = Channels.rgba, int colorspace = 0})
Constructor that does not do any automatic decoding

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
Image height in pixels
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Image width in pixels
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPNG() Uint8List
Encode to a PNG image, using the Image library
toQOI() Uint8List
Encode to a QOI image, using the built-in encoder
toRaw() Uint8List
Dump to a raw binary image, without any conversions
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromPNG(Uint8List raw, {Channels? overrideChannels, int? overrideColorspace}) QOI
Decode from a PNG image, using the Image library
fromQOI(Uint8List raw) QOI
Decode from a QOI image, using the built-in decoder