PdfRasterBase.fromPng constructor

PdfRasterBase.fromPng(
  1. Uint8List png
)

Implementation

factory PdfRasterBase.fromPng(Uint8List png) {
  final img = im.PngDecoder().decode(png)!;
  return PdfRasterBase.fromImage(img);
}