---
title: "asImageBitmap"
description: "Create an [ImageBitmap] from the given [Bitmap]. Note this does not create a copy of the original
[Bitmap] and changes to it will modify the returned [ImageBitmap]"
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
fun Bitmap.asImageBitmap(): ImageBitmap
```


Create an `ImageBitmap` from the given `Bitmap`. Note this does not create a copy of the original
`Bitmap` and changes to it will modify the returned `ImageBitmap`



