encodePng function

List<int> encodePng (
  1. Image image,
  2. {int level: 6}
)

Encode an image to the PNG format.

Implementation

List<int> encodePng(Image image, {int level = 6}) {
  return PngEncoder(level: level).encodeImage(image);
}