# ImageDecoderKt

Added in 1.1.0

*** ** * ** ***


```
public final class ImageDecoderKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html` | `@https://developer.android.com/reference/androidx/annotation/RequiresApi(value = 28) https://developer.android.com/reference/androidx/core/graphics/ImageDecoderKt#(android.graphics.ImageDecoder.Source).decodeBitmap(kotlin.Function3)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/ImageDecoder.Source.html receiver, @https://developer.android.com/reference/androidx/annotation/NonNull Function3<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/ImageDecoder.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/ImageDecoder.ImageInfo.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/ImageDecoder.Source.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html> action )` Create a Bitmap from a Source |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `@https://developer.android.com/reference/androidx/annotation/RequiresApi(value = 28) https://developer.android.com/reference/androidx/core/graphics/ImageDecoderKt#(android.graphics.ImageDecoder.Source).decodeDrawable(kotlin.Function3)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/ImageDecoder.Source.html receiver, @https://developer.android.com/reference/androidx/annotation/NonNull Function3<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/ImageDecoder.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/ImageDecoder.ImageInfo.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/ImageDecoder.Source.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html> action )` Create a Drawable from a Source |

## Public methods

### decodeBitmap

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/ImageDecoder.kt+function:decodeBitmap) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 28)
public static final @NonNull Bitmap decodeBitmap(
    @NonNull ImageDecoder.Source receiver,
    @NonNull Function3<@NonNull ImageDecoder, @NonNull ImageDecoder.ImageInfo, @NonNull ImageDecoder.Source, Unit> action
)
```

Create a Bitmap from a Source

| See also |
|---|---|
| `https://developer.android.com/reference/android/graphics/ImageDecoder.html#decodeBitmap(android.graphics.ImageDecoder.Source)` |   |

### decodeDrawable

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/ImageDecoder.kt+function:decodeDrawable) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 28)
public static final @NonNull Drawable decodeDrawable(
    @NonNull ImageDecoder.Source receiver,
    @NonNull Function3<@NonNull ImageDecoder, @NonNull ImageDecoder.ImageInfo, @NonNull ImageDecoder.Source, Unit> action
)
```

Create a Drawable from a Source

| See also |
|---|---|
| `https://developer.android.com/reference/android/graphics/ImageDecoder.html#decodeDrawable(android.graphics.ImageDecoder.Source)` |   |