pixelsToPNG method

FutureOr<Uint8List> pixelsToPNG(
  1. PCanvasPixels pixels
)

Implementation

FutureOr<Uint8List> pixelsToPNG(PCanvasPixels pixels) {
  var pCanvas = pixels.toPCanvas();
  return pCanvas.toPNG();
}