decode method

Image decode(
  1. Uint8List bytes, {
  2. DecodeOptions? decodeOptions,
})

Decodes straight RGBA8 using format-specific decodeOptions.

Implementations must reject a non-positive or exceeded pixel limit from decodeOptions before allocating their output, and use their default options when it is omitted.

Implementation

Image decode(
  Uint8List bytes, {
  DecodeOptions? decodeOptions,
}) => throw ImageCodecException('This extension does not decode ${format.name}');