toPng method

Future<Uint8List> toPng()

Convert to a PNG image

Implementation

Future<Uint8List> toPng() async {
  final img = asImage();
  return im.PngEncoder().encode(img);
}