path
Function
Common
inline fun ImageVector.Builder.path(
name: String = DefaultPathName,
fill: Brush? = null,
fillAlpha: Float = 1.0f,
stroke: Brush? = null,
strokeAlpha: Float = 1.0f,
strokeLineWidth: Float = DefaultStrokeLineWidth,
strokeLineCap: StrokeCap = DefaultStrokeLineCap,
strokeLineJoin: StrokeJoin = DefaultStrokeLineJoin,
strokeLineMiter: Float = DefaultStrokeLineMiter,
pathFillType: PathFillType = DefaultFillType,
pathBuilder: PathBuilder.() -> Unit,
) =
addPath(
PathData(pathBuilder),
pathFillType,
name,
fill,
fillAlpha,
stroke,
strokeAlpha,
strokeLineWidth,
strokeLineCap,
strokeLineJoin,
strokeLineMiter,
)
DSL extension for adding a VectorPath
to this
.
See ImageVector.Builder.addPath
for the corresponding builder function.
Parameters
name | the name for this path |
fill | specifies the Brush used to fill the path |
fillAlpha | the alpha to fill the path |
stroke | specifies the Brush used to fill the stroke |
strokeAlpha | the alpha to stroke the path |
strokeLineWidth | the width of the line to stroke the path |
strokeLineCap | specifies the linecap for a stroked path |
strokeLineJoin | specifies the linejoin for a stroked path |
strokeLineMiter | specifies the miter limit for a stroked path |
pathFillType | specifies the winding rule that decides how the interior of a Path is calculated. |
pathBuilder | PathBuilder lambda for adding PathNode s to this path. |