PdfBitmap constructor
Initializes a new instance of the PdfBitmap class from the image data as list of bytes
//Creates a new PDF document.
PdfDocument doc = PdfDocument();
//Draw the image.
doc.pages
.add()
.graphics
.drawImage(PdfBitmap(imageData), Rect.fromLTWH(0, 0, 100, 100));
//Saves the document.
List<int> bytes = doc.save();
//Dispose the document.
doc.dispose();
Implementation
PdfBitmap(List<int> imageData) {
_helper = PdfBitmapHelper(this);
_initialize(imageData);
}