FreeDrawScope
class FreeDrawScope
Receiver of freeDraw { ... } — collects vector paths authored in the node's local coordinate space.
Each path call produces one fill / stroke unit. Coordinates run from (0, 0) at the top-left of the drawing area to (width, height) at the bottom-right; the renderer scales them into the node's final rectangle, so drawings stay sharp at any zoom level.
Functions
Link copied to clipboard
fun path(fill: PdfColor? = null, fillPaint: PdfPaint? = null, strokeColor: PdfColor? = null, strokeWidth: Float = 0.0f, block: PathScope.() -> Unit)
Adds one path. Provide fill (solid shorthand) or fillPaint (gradient — wins over fill) to fill the interior, and strokeColor + strokeWidth to outline it. Both may be combined.