writePng function

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

Renamed to encodePng, left for backward compatibility.

Implementation

List<int> writePng(Image image, {int level = 6}) =>
    encodePng(image, level: level);