PdfBitmap class
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
-
- Object
- PdfLayoutElement
- PdfShapeElement
- PdfImage
- PdfBitmap
Constructors
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 setteroverride
- horizontalResolution → double
-
Horizontal Resolution of an image
no setteroverride
- pen ↔ PdfPen
-
Gets a pen that will be used to draw the element.
getter/setter pairinherited
- physicalDimension → Size
-
Size of an image
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verticalResolution → double
-
Vertical Resolution of an image
no setteroverride
- width → int
-
Width of an image
no setteroverride
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