PdfImage class abstract

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.
getter/setter pairinherited
endPageLayout EndPageLayoutCallback?
Raises after the element was printed on the page.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
height int
Height of an image
no setter
horizontalResolution double
Horizontal Resolution of an image
no setter
pen PdfPen
Gets a pen that will be used to draw the element.
getter/setter pairinherited
physicalDimension Size
Size of an image
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verticalResolution double
Vertical Resolution of an image
no setter
width int
Width of an image
no setter

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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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