drawImage method
Draws an image into PDF graphics.
//Creates a new PDF document.
PdfDocument doc = PdfDocument()
..pages
.add()
.graphics
//Draw image.
.drawImage(PdfBitmap(imageData), Rect.fromLTWH(0, 0, 100, 100));
//Saves the document.
List<int> bytes = doc.save();
//Dispose the document.
doc.dispose();
Implementation
void drawImage(PdfImage image, Rect bounds) {
_drawImage(image, bounds);
}