decodePng function

Image decodePng(
  1. Uint8List bytes, {
  2. PngDecodeOptions? options,
})

Decodes the first frame of a PNG image to straight RGBA.

Implementation

Image decodePng(
  Uint8List bytes, {
  PngDecodeOptions? options,
}) => decodeImage(
  bytes,
  options: options,
);