Function

path

Adds a path to this RemoteImageVector.Builder.

path

Source set: JvmAndAndroid
public fun RemoteImageVector.Builder.path(
    name: String = DefaultPathName,
    fill: RemoteBrush? = null,
    fillAlpha: RemoteFloat = 1.0f.rf,
    stroke: RemoteBrush? = null,
    strokeAlpha: RemoteFloat = 1.0f.rf,
    strokeLineWidth: RemoteFloat = DefaultStrokeLineWidth,
    strokeLineCap: RemoteStrokeCap = DefaultStrokeLineCap,
    strokeLineJoin: RemoteStrokeJoin = DefaultStrokeLineJoin,
    strokeLineMiter: RemoteFloat = DefaultStrokeLineMiter,
    pathFillType: RemotePathFillType = DefaultFillType,
    pathBuilder: RemotePathScope.() -> Unit,
): RemoteImageVector.Builder

Adds a path to this RemoteImageVector.Builder.

Parameters

name name for this path
fill RemoteBrush used to fill the path
fillAlpha alpha to fill the path
stroke RemoteBrush used to stroke the path
strokeAlpha alpha to stroke the path
strokeLineWidth width of the line to stroke the path
strokeLineCap RemoteStrokeCap for a stroked path
strokeLineJoin RemoteStrokeJoin for a stroked path
strokeLineMiter miter limit for a stroked path
pathFillType RemotePathFillType winding rule that decides how the interior of a path is calculated
pathBuilder RemotePathScope lambda for drawing commands in this path

Return

this RemoteImageVector.Builder instance for chaining calls

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: