Rendering target. The interpreter walks a content stream and emits these callbacks; implementations include the Flutter Canvas device, a text-extraction device, and test recorders.
- Implementers
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
-
beginGroup(
double alpha, {bool knockout = false}) → void -
Brackets a transparency-group form (§11.6.6) whose composite result
paints at
alpha. Inside the group, alpha starts over at 1.0; the group then blends as one object. Non-compositing devices can treat the pair as a no-op - the group's content still arrives through the normal callbacks in between. -
beginSoftMasked(
) → void - Starts capturing painted content that an ExtGState /SMask will mask. Visual devices open an offscreen layer; others can ignore the pair.
-
clipPath(
PdfPath path, PdfFillRule rule) → void -
Intersects the current clip with
path. -
drawImage(
PdfImageRequest request) → void -
drawText(
PdfTextRun run) → void -
endGroup(
) → void - Composites the group opened by beginGroup.
-
endSoftMasked(
{required bool luminosity, required PdfRect backdrop, required void drawMask(), double backdropLuminance = 0, double transferScale = 1, double transferOffset = 0}) → void -
Ends the capture opened by beginSoftMasked.
drawMaskpaints the mask group's content through this same device; for luminosity masks the device converts the result's luminance to alpha over thebackdropbox, then composites it into the captured content (dstIn). Areas the mask group doesn't paint takebackdropLuminance(the luminance of the /BC backdrop colour, default black). The mask value is remapped through the /TR transfer function, linearised here asvalue * transferScale + transferOffset(identity by default). Devices that collect content fromdrawMask(e.g. image collectors) should invoke it even if they do no compositing. -
fillMesh(
PdfMesh mesh, double alpha) → void - Paints a Gouraud triangle mesh (mesh shadings, types 4–7). Vertices arrive in page space. Non-painting devices can ignore it; simple devices may fall back to PdfMesh.averageColor.
-
fillPath(
PdfPath path, PdfColor color, PdfFillRule rule, double alpha) → void -
fillPathGradient(
PdfPath path, PdfFillRule rule, PdfGradient gradient, double alpha) → void -
Fills with a gradient (axial/radial shading patterns and
sh). Non-painting devices can ignore it; simple devices may fall back tofillPathwith PdfGradient.averageColor. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
restore(
) → void -
Mirrors
Q. -
save(
) → void -
Mirrors
q. Saved state must include the clip. -
setBlendMode(
PdfBlendMode mode) → void - Sets the blend mode for subsequent painting (gs /BM). Non-compositing devices can ignore it.
-
strokePath(
PdfPath path, PdfColor color, PdfStroke stroke, double alpha) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited