Skip to content

Commit

Permalink
Migrate to new Compose API
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Mar 2, 2024
1 parent d28514d commit 181a10a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ internal actual fun getPlatform(): Platform = Platform.NonAndroid

@Composable
internal actual fun Image.toImageBitmap(): ImageBitmap {
return asBitmap().asComposeImageBitmap()
return toBitmap().asComposeImageBitmap()
}

internal actual val platformContext: PlatformContext
Expand Down Expand Up @@ -69,5 +69,5 @@ internal actual fun rememberImagePainter(image: Image, imagePlugins: List<ImageP

@Composable
internal fun bitmapPainter(image: Image): Painter {
return BitmapPainter(image = image.asBitmap().asComposeImageBitmap())
return BitmapPainter(image = image.toImageBitmap())
}

0 comments on commit 181a10a

Please # to comment.