# ImageVector.Builder

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/vector/ImageVector.kt+class:androidx.compose.ui.graphics.vector.ImageVector.Builder) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/All
- Cmn

  ```
  class ImageVector.Builder
  ```

*** ** * ** ***

Builder used to construct a Vector graphic tree. This is useful for caching the result of expensive operations used to construct a vector graphic for compose. For example, the vector graphic could be serialized and downloaded from a server and represented internally in a ImageVector before it is composed through `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/rememberVectorPainter.composable#rememberVectorPainter(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,kotlin.Float,kotlin.Float,kotlin.String,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.BlendMode,kotlin.Function2)` The generated ImageVector is recommended to be memoized across composition calls to avoid doing redundant work

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#Builder(kotlin.String,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.BlendMode,kotlin.Boolean)( name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, defaultWidth: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, defaultHeight: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, viewportWidth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, viewportHeight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, tintColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, tintBlendMode: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode, autoMirror: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#addGroup(kotlin.String,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.collections.List)( name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, rotate: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, scaleX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, scaleY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, translationX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, translationY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, clipPathData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode> )` Create a new group and push it to the front of the stack of ImageVector nodes | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#addPath(kotlin.collections.List,androidx.compose.ui.graphics.PathFillType,kotlin.String,androidx.compose.ui.graphics.Brush,kotlin.Float,androidx.compose.ui.graphics.Brush,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.StrokeCap,androidx.compose.ui.graphics.StrokeJoin,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)( pathData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode>, pathFillType: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType, name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, fill: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush?, fillAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, stroke: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush?, strokeAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, strokeLineWidth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, strokeLineCap: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap, strokeLineJoin: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeJoin, strokeLineMiter: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, trimPathStart: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, trimPathEnd: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, trimPathOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Add a path to the ImageVector graphic. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#build()()` Construct a ImageVector. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#clearGroup()()` Pops the topmost VectorGroup from this ImageVector.Builder. | Cmn |

| ### Extension functions |
|---|---|---|
| `inline https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#(androidx.compose.ui.graphics.vector.ImageVector.Builder).materialPath(kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.PathFillType,kotlin.Function1)( fillAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, strokeAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pathFillType: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType, pathBuilder: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Adds a vector path to this icon with Material defaults. | Cmn |
| `inline https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#(androidx.compose.ui.graphics.vector.ImageVector.Builder).group(kotlin.String,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.collections.List,kotlin.Function1)( name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, rotate: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, scaleX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, scaleY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, translationX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, translationY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, clipPathData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode>, block: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` DSL extension for adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorGroup` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder`. | Cmn |
| `inline https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#(androidx.compose.ui.graphics.vector.ImageVector.Builder).path(kotlin.String,androidx.compose.ui.graphics.Brush,kotlin.Float,androidx.compose.ui.graphics.Brush,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.StrokeCap,androidx.compose.ui.graphics.StrokeJoin,kotlin.Float,androidx.compose.ui.graphics.PathFillType,kotlin.Function1)( name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, fill: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush?, fillAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, stroke: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush?, strokeAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, strokeLineWidth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, strokeLineCap: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap, strokeLineJoin: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeJoin, strokeLineMiter: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pathFillType: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType, pathBuilder: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` DSL extension for adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder`. | Cmn |

## Public constructors

### Builder

Cmn Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.9.0)

```
Builder(
    name: String = DefaultGroupName,
    defaultWidth: Dp,
    defaultHeight: Dp,
    viewportWidth: Float,
    viewportHeight: Float,
    tintColor: Color = Color.Unspecified,
    tintBlendMode: BlendMode = BlendMode.SrcIn,
    autoMirror: Boolean = false
)
```

## Public functions

### addGroup

Cmn

```
fun addGroup(
    name: String = DefaultGroupName,
    rotate: Float = DefaultRotation,
    pivotX: Float = DefaultPivotX,
    pivotY: Float = DefaultPivotY,
    scaleX: Float = DefaultScaleX,
    scaleY: Float = DefaultScaleY,
    translationX: Float = DefaultTranslationX,
    translationY: Float = DefaultTranslationY,
    clipPathData: List<PathNode> = EmptyPath
): ImageVector.Builder
```

Create a new group and push it to the front of the stack of ImageVector nodes

| Parameters |
|---|---|
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = DefaultGroupName` | the name of the group |
| `rotate: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultRotation` | the rotation of the group in degrees |
| `pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultPivotX` | the x coordinate of the pivot point to rotate or scale the group |
| `pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultPivotY` | the y coordinate of the pivot point to rotate or scale the group |
| `scaleX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultScaleX` | the scale factor in the X-axis to apply to the group |
| `scaleY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultScaleY` | the scale factor in the Y-axis to apply to the group |
| `translationX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultTranslationX` | the translation in virtual pixels to apply along the x-axis |
| `translationY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultTranslationY` | the translation in virtual pixels to apply along the y-axis |
| `clipPathData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode> = EmptyPath` | the path information used to clip the content within the group |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` | This ImageVector.Builder instance as a convenience for chaining calls |

### addPath

Cmn Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun addPath(
    pathData: List<PathNode>,
    pathFillType: PathFillType = DefaultFillType,
    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,
    trimPathStart: Float = DefaultTrimPathStart,
    trimPathEnd: Float = DefaultTrimPathEnd,
    trimPathOffset: Float = DefaultTrimPathOffset
): ImageVector.Builder
```

Add a path to the ImageVector graphic. This represents a leaf node in the ImageVector graphics tree structure

| Parameters |
|---|---|
| `pathData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode>` | path information to render the shape of the path |
| `pathFillType: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType = DefaultFillType` | rule to determine how the interior of the path is to be calculated |
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = DefaultPathName` | the name of the path |
| `fill: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush? = null` | specifies the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush` used to fill the path |
| `fillAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | the alpha to fill the path |
| `stroke: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush? = null` | specifies the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush` used to fill the stroke |
| `strokeAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | the alpha to stroke the path |
| `strokeLineWidth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultStrokeLineWidth` | the width of the line to stroke the path |
| `strokeLineCap: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap = DefaultStrokeLineCap` | specifies the linecap for a stroked path |
| `strokeLineJoin: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeJoin = DefaultStrokeLineJoin` | specifies the linejoin for a stroked path |
| `strokeLineMiter: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultStrokeLineMiter` | specifies the miter limit for a stroked path |
| `trimPathStart: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultTrimPathStart` | specifies the fraction of the path to trim from the start in the range from 0 to 1. Values outside the range will wrap around the length of the path. Default is 0. |
| `trimPathEnd: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultTrimPathEnd` | specifies the fraction of the path to trim from the end in the range from 0 to 1. Values outside the range will wrap around the length of the path. Default is 1. |
| `trimPathOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultTrimPathOffset` | specifies the fraction to shift the path trim region in the range from 0 to 1. Values outside the range will wrap around the length of the path. Default is 0. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` | This ImageVector.Builder instance as a convenience for chaining calls |

### build

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun build(): ImageVector
```

Construct a ImageVector. This concludes the creation process of a ImageVector graphic This builder cannot be re-used to create additional ImageVector instances

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector` | The newly created ImageVector instance |

### clearGroup

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun clearGroup(): ImageVector.Builder
```

Pops the topmost VectorGroup from this ImageVector.Builder. This is used to indicate that no additional ImageVector nodes will be added to the current VectorGroup

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder` | This ImageVector.Builder instance as a convenience for chaining calls |

## Extension functions

### ImageVector.Builder.materialPath

Cmn Artifact: [androidx.compose.material:material-icons-core](https://developer.android.com/jetpack/androidx/releases/compose-material) [View Source](https://cs.android.com/search?q=file:androidx/compose/material/icons/Icons.kt+function:materialPath)

```
inline fun ImageVector.Builder.materialPath(
    fillAlpha: Float = 1.0f,
    strokeAlpha: Float = 1.0f,
    pathFillType: PathFillType = DefaultFillType,
    pathBuilder: PathBuilder.() -> Unit
): ImageVector.Builder
```

Adds a vector path to this icon with Material defaults.

| Parameters |
|---|---|
| `fillAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | fill alpha for this path |
| `strokeAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | stroke alpha for this path |
| `pathFillType: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType = DefaultFillType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType` for this path |
| `pathBuilder: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | builder lambda to add commands to this path |

### ImageVector.Builder.group

Cmn Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/vector/ImageVector.kt+function:group)

```
inline fun ImageVector.Builder.group(
    name: String = DefaultGroupName,
    rotate: Float = DefaultRotation,
    pivotX: Float = DefaultPivotX,
    pivotY: Float = DefaultPivotY,
    scaleX: Float = DefaultScaleX,
    scaleY: Float = DefaultScaleY,
    translationX: Float = DefaultTranslationX,
    translationY: Float = DefaultTranslationY,
    clipPathData: List<PathNode> = EmptyPath,
    block: ImageVector.Builder.() -> Unit
): ImageVector.Builder
```

DSL extension for adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorGroup` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder`.

See `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#addGroup(kotlin.String,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.collections.List)` for the corresponding builder function.

| Parameters |
|---|---|
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = DefaultGroupName` | the name of the group |
| `rotate: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultRotation` | the rotation of the group in degrees |
| `pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultPivotX` | the x coordinate of the pivot point to rotate or scale the group |
| `pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultPivotY` | the y coordinate of the pivot point to rotate or scale the group |
| `scaleX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultScaleX` | the scale factor in the X-axis to apply to the group |
| `scaleY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultScaleY` | the scale factor in the Y-axis to apply to the group |
| `translationX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultTranslationX` | the translation in virtual pixels to apply along the x-axis |
| `translationY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultTranslationY` | the translation in virtual pixels to apply along the y-axis |
| `clipPathData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode> = EmptyPath` | the path information used to clip the content within the group |
| `block: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | builder lambda to add children to this group |

### ImageVector.Builder.path

Cmn Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/vector/ImageVector.kt+function:path)

```
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
): ImageVector.Builder
```

DSL extension for adding a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/VectorPath` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder`.

See `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/ImageVector.Builder#addPath(kotlin.collections.List,androidx.compose.ui.graphics.PathFillType,kotlin.String,androidx.compose.ui.graphics.Brush,kotlin.Float,androidx.compose.ui.graphics.Brush,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.StrokeCap,androidx.compose.ui.graphics.StrokeJoin,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` for the corresponding builder function.

| Parameters |
|---|---|
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html = DefaultPathName` | the name for this path |
| `fill: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush? = null` | specifies the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush` used to fill the path |
| `fillAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | the alpha to fill the path |
| `stroke: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush? = null` | specifies the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush` used to fill the stroke |
| `strokeAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | the alpha to stroke the path |
| `strokeLineWidth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultStrokeLineWidth` | the width of the line to stroke the path |
| `strokeLineCap: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap = DefaultStrokeLineCap` | specifies the linecap for a stroked path |
| `strokeLineJoin: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeJoin = DefaultStrokeLineJoin` | specifies the linejoin for a stroked path |
| `strokeLineMiter: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = DefaultStrokeLineMiter` | specifies the miter limit for a stroked path |
| `pathFillType: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType = DefaultFillType` | specifies the winding rule that decides how the interior of a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` is calculated. |
| `pathBuilder: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathBuilder` lambda for adding `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathNode`s to this path. |