encodePng function
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);