PdfBitmap class Null safety

The PdfBitmap contains methods and properties to handle the Bitmap images

//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();
Inheritance

Constructors

PdfBitmap(List<int> imageData)
Initializes a new instance of the PdfBitmap class from the image data as list of bytes
PdfBitmap.fromBase64String(String imageData)
Initializes a new instance of the PdfBitmap class from the image data as base64 string

Properties

beginPageLayout BeginPageLayoutCallback?
Raises before the element should be printed on the page.
read / writeinherited
endPageLayout EndPageLayoutCallback?
Raises after the element was printed on the page.
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
height int
Height of an image
read-onlyoverride
horizontalResolution double
Horizontal Resolution of an image
read-onlyoverride
pen PdfPen
Gets a pen that will be used to draw the element.
read / writeinherited
physicalDimension Size
Size of an image
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
verticalResolution double
Vertical Resolution of an image
read-onlyoverride
width int
Width of an image
read-onlyoverride

Methods

draw({PdfGraphics? graphics, PdfPage? page, Rect? bounds, PdfLayoutFormat? format}) PdfLayoutResult?
Draws an element on the graphics or page.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited