# add_a_photo Icon

> The add_a_photo icon from Material as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Material Icons](https://composables.com/icons/icon-libraries/material-icons.md)
- License: Apache 2.0 (full text in the [Material Icons library page](https://composables.com/icons/icon-libraries/material-icons.md))
- Styles: [Filled](https://composables.com/icons/icon-libraries/material-icons/add_a_photo.md?v=filled), [Outlined](https://composables.com/icons/icon-libraries/material-icons/add_a_photo.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-icons/add_a_photo.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-icons/add_a_photo.md?v=sharp), [Two-Tone](https://composables.com/icons/icon-libraries/material-icons/add_a_photo.md?v=twotone)
- Categories: [Image](https://composables.com/icons/categories/image.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/add_a_photo.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val MaterialIconsAddAPhoto: ImageVector
    get() {
        if (_MaterialIconsAddAPhoto != null) return _MaterialIconsAddAPhoto!!
        
        _MaterialIconsAddAPhoto = ImageVector.Builder(
            name = "add_a_photo",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent)
            ) {
                moveTo(0f, 0f)
                horizontalLineToRelative(24f)
                verticalLineToRelative(24f)
                horizontalLineTo(0f)
                close()
            }
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(21f, 6f)
                horizontalLineToRelative(-3.17f)
                lineTo(16f, 4f)
                horizontalLineToRelative(-6f)
                verticalLineToRelative(2f)
                horizontalLineToRelative(5.12f)
                lineToRelative(1.83f, 2f)
                horizontalLineTo(21f)
                verticalLineToRelative(12f)
                horizontalLineTo(5f)
                verticalLineToRelative(-9f)
                horizontalLineTo(3f)
                verticalLineToRelative(9f)
                curveToRelative(0f, 1.1f, 0.9f, 2f, 2f, 2f)
                horizontalLineToRelative(16f)
                curveToRelative(1.1f, 0f, 2f, -0.9f, 2f, -2f)
                verticalLineTo(8f)
                curveToRelative(0f, -1.1f, -0.9f, -2f, -2f, -2f)
                close()
                moveTo(8f, 14f)
                curveToRelative(0f, 2.76f, 2.24f, 5f, 5f, 5f)
                reflectiveCurveToRelative(5f, -2.24f, 5f, -5f)
                reflectiveCurveToRelative(-2.24f, -5f, -5f, -5f)
                reflectiveCurveToRelative(-5f, 2.24f, -5f, 5f)
                close()
                moveToRelative(5f, -3f)
                curveToRelative(1.65f, 0f, 3f, 1.35f, 3f, 3f)
                reflectiveCurveToRelative(-1.35f, 3f, -3f, 3f)
                reflectiveCurveToRelative(-3f, -1.35f, -3f, -3f)
                reflectiveCurveToRelative(1.35f, -3f, 3f, -3f)
                close()
                moveTo(5f, 6f)
                horizontalLineToRelative(3f)
                verticalLineTo(4f)
                horizontalLineTo(5f)
                verticalLineTo(1f)
                horizontalLineTo(3f)
                verticalLineToRelative(3f)
                horizontalLineTo(0f)
                verticalLineToRelative(2f)
                horizontalLineToRelative(3f)
                verticalLineToRelative(3f)
                horizontalLineToRelative(2f)
                close()
            }
        }.build()
        
        return _MaterialIconsAddAPhoto!!
    }

private var _MaterialIconsAddAPhoto: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-icons/add_a_photo.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:pathData="M0,0h24v24H0Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M21,6h-3.17L16,4h-6v2h5.12l1.83,2H21v12H5v-9H3v9c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2ZM8,14c0,2.76 2.24,5 5,5s5,-2.24 5,-5s-2.24,-5 -5,-5s-5,2.24 -5,5Zm5,-3c1.65,0 3,1.35 3,3s-1.35,3 -3,3s-3,-1.35 -3,-3s1.35,-3 3,-3ZM5,6h3V4H5V1H3v3H0v2h3v3h2Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/material-icons/add_a_photo.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0z" fill="none"/><path d="M21 6h-3.17L16 4h-6v2h5.12l1.83 2H21v12H5v-9H3v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM8 14c0 2.76 2.24 5 5 5s5-2.24 5-5-2.24-5-5-5-5 2.24-5 5zm5-3c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3zM5 6h3V4H5V1H3v3H0v2h3v3h2z"/></svg>
```
