---
title: "ImageVector"
description: "Vector graphics object that is generated as a result of [ImageVector.Builder] It can be composed
and rendered by passing it as an argument to [rememberVectorPainter]"
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class ImageVector
internal constructor(

    /** Name of the Vector asset */
    val name: String,

    /** Intrinsic width of the vector asset in [Dp] */
    val defaultWidth: Dp,

    /** Intrinsic height of the vector asset in [Dp] */
    val defaultHeight: Dp,

    /**
     * Used to define the width of the viewport space. Viewport is basically the virtual canvas
     * where the paths are drawn on.
     */
    val viewportWidth: Float,

    /**
     * Used to define the height of the viewport space. Viewport is basically the virtual canvas
     * where the paths are drawn on.
     */
    val viewportHeight: Float,

    /** Root group of the vector asset that contains all the child groups and paths */
    val root: VectorGroup,

    /** Optional tint color to be applied to the vector graphic */
    val tintColor: Color,

    /** Blend mode used to apply [tintColor] */
    val tintBlendMode: BlendMode,

    /** Determines if the vector asset should automatically be mirrored for right to left locales */
    val autoMirror: Boolean,

    /**
     * Identifier used to disambiguate between different ImageVector instances in a more efficient
     * manner than equality. This can be used as a key for caching instances of ImageVectors.
     */
    internal val genId: Int = generateImageVectorId(),
)
```


Vector graphics object that is generated as a result of `ImageVector.Builder` It can be composed
and rendered by passing it as an argument to `rememberVectorPainter`


## Companion Object



