Function

asImageBitmap

Create an ImageBitmap from the given Bitmap.

asImageBitmap

Source set: Android
public 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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: