{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

AndroidImageBitmapKt

public final class AndroidImageBitmapKt


Summary

Public methods

static final @NonNull Bitmap
static final @NonNull ImageBitmap

Create an ImageBitmap from the given Bitmap.

Public methods

asAndroidBitmap

public static final @NonNull Bitmap asAndroidBitmap(@NonNull ImageBitmap receiver)
Throws
kotlin.UnsupportedOperationException

if this ImageBitmap is not backed by an android.graphics.Bitmap

asImageBitmap

public static final @NonNull ImageBitmap asImageBitmap(@NonNull Bitmap receiver)

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