# BitmapDrawableKt

Added in 1.1.0

*** ** * ** ***


```
public final class BitmapDrawableKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html` | `https://developer.android.com/reference/androidx/core/graphics/drawable/BitmapDrawableKt#(android.graphics.Bitmap).toDrawable(android.content.res.Resources)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/res/Resources.html resources)` Create a `https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html` from this `https://developer.android.com/reference/android/graphics/Bitmap.html`. |

## Public methods

### toDrawable

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

```
public static final @NonNull BitmapDrawable toDrawable(@NonNull Bitmap receiver, @NonNull Resources resources)
```

Create a `https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html` from this `https://developer.android.com/reference/android/graphics/Bitmap.html`.