PdfImage class Null safety

Represents the base class for images and provides functionality for the PdfBitmap class

//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
Implementers

Constructors

PdfImage()

Properties

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

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