PdfBrush class abstract
Provides objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
//Create a new PDF document.
PdfDocument doc = PdfDocument();
//Create a new PDF solid brush.
PdfBrush solidBrush = PdfSolidBrush(PdfColor(1, 0, 0));
//Add a page and draw a rectangle using the brush.
doc.pages
.add()
.graphics
.drawRectangle(brush: solidBrush,
bounds: Rect.fromLTWH(0, 0, 200, 100));
//Save the document.
List<int> bytes = doc.save();
//Dispose the document.
doc.dispose();
- Implementers
Constructors
- PdfBrush()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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