QOI.fromRaw constructor

QOI.fromRaw({
  1. required Uint8List bytes,
  2. required int width,
  3. required int height,
  4. Channels channels = Channels.rgba,
  5. int colorspace = 0,
})

Constructor that does not do any automatic decoding

The input bytes must just be unformatted pixel data (eg. no headers).

Implementation

QOI.fromRaw({
  required Uint8List bytes,
  required this.width,
  required this.height,
  Channels channels = Channels.rgba,
  int colorspace = 0,
})  : _bytes = bytes,
      _channels = channels,
      _colorspace = colorspace;