---
title: "decodeToImageBitmap"
description: "Decodes a byte array of a Bitmap to an ImageBitmap."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun ByteArray.decodeToImageBitmap(): ImageBitmap
```


Decodes a byte array of a Bitmap to an ImageBitmap.

#### Returns

| | |
| --- | --- |
|  | The converted ImageBitmap. |




