drawImageBox method

void drawImageBox(
  1. PdfDocument document,
  2. PdfVisualImage image,
  3. PdfRect bounds
)

Implementation

void drawImageBox(
  PdfDocument document,
  PdfVisualImage image,
  PdfRect bounds,
) {
  final pdfImage = image.toPdfImage(document);
  drawImage(pdfImage, bounds.left, bounds.bottom, bounds.width, bounds.height);
}