encodePng function

Uint8List encodePng(
  1. Image image, {
  2. bool singleFrame = false,
  3. int level = 6,
  4. PngFilter filter = PngFilter.paeth,
})

Encode an image to the PNG format.

Implementation

Uint8List encodePng(Image image,
        {bool singleFrame = false,
        int level = 6,
        PngFilter filter = PngFilter.paeth}) =>
    PngEncoder(filter: filter, level: level)
        .encode(image, singleFrame: singleFrame);