VectorPath
data class VectorPath(val commands: List<PathCommand>, val fill: PdfPaint? = null, val strokeColor: PdfColor? = null, val strokeWidth: Float = 0.0f)
One path inside a VectorImage.
Constructors
Link copied to clipboard
constructor(commands: List<PathCommand>, fill: PdfPaint? = null, strokeColor: PdfColor? = null, strokeWidth: Float = 0.0f)
Properties
Link copied to clipboard
the path's strokes and fills as a sequence of absolute PathCommands. The renderer never inspects this list — it just hands it to the platform canvas.
Link copied to clipboard
paint used to fill the path interior. Can be a solid colour (PdfPaint.Solid) or a gradient (PdfPaint.LinearGradient / PdfPaint.RadialGradient). null means do not fill.
Link copied to clipboard
Convenience accessor returning the fill colour when fill is a PdfPaint.Solid, or null otherwise. Useful from code that hasn't yet been updated to handle gradients.
Link copied to clipboard
solid stroke colour, or null to skip stroking. Strokes are always solid colours; gradient strokes are not yet supported.
Link copied to clipboard
stroke width in viewport units; ignored when strokeColor is null.