[android-components](../../index.md) / [mozilla.components.support.ktx.android.graphics](../index.md) / [android.graphics.Bitmap](./index.md)

### Extensions for android.graphics.Bitmap

| Name | Summary |
|---|---|
| [toDataUri](to-data-uri.md) | `fun `[`Bitmap`](https://developer.android.com/reference/android/graphics/Bitmap.html)`.toDataUri(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>Transform bitmap into base64 encoded data uri (PNG). |
| [withRoundedCorners](with-rounded-corners.md) | `fun `[`Bitmap`](https://developer.android.com/reference/android/graphics/Bitmap.html)`.withRoundedCorners(cornerRadiusPx: `[`Float`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`): `[`Bitmap`](https://developer.android.com/reference/android/graphics/Bitmap.html)<br>Returns a new bitmap that is the receiver Bitmap with four rounded corners; the receiver is unmodified. |
