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)

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
val dashes: DoubleArray? = null

if lines are segmented

Link copied to clipboard
val dashOffset: Double = 0.0

of the dashes

Link copied to clipboard
val fill: Paint

that paints the outline

Link copied to clipboard
val lineCap: Stroke.LineCap? = null
Link copied to clipboard
Link copied to clipboard
val thickness: Double = 1.0

of outline

Link copied to clipboard

true IFF thickness 0 and color visible