Stroke

class Stroke(val fill: Paint = ColorPaint(Black), val thickness: Double = 1.0, val dashes: DoubleArray? = null, val dashOffset: Double = 0.0, val lineJoint: Stroke.LineJoint? = null, val lineCap: Stroke.LineCap? = null)(source)

Strokes are used to outline regions when drawing shapes on a Canvas.

Author

Nicholas Eddy

Parameters

fill

that paints the outline

thickness

of outline

dashes

if lines are segmented

dashOffset

of the dashes

Constructors

Link copied to clipboard
constructor(fill: Paint = ColorPaint(Black), thickness: Double = 1.0, dashes: DoubleArray? = null, dashOffset: Double = 0.0, lineJoint: Stroke.LineJoint? = null, lineCap: Stroke.LineCap? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

if lines are segmented

Link copied to clipboard

of the dashes

Link copied to clipboard
val fill: Paint

that paints the outline

Link copied to clipboard

how much overlap the stroke would have with a shape's edge

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

of outline

Link copied to clipboard

true IFF thickness> 0 and paint visible

Functions

Link copied to clipboard
operator fun Stroke?.invoke(text: () -> AnnotatedString): AnnotatedString
@JvmName(name = "invokeString")
operator fun Stroke?.invoke(text: () -> String): AnnotatedString