rememberIconImage

@Composable
fun rememberIconImage(key: Any?, painter: Painter): IconImage

Create and remember a Bitmap with Painter.

Return

a Bitmap

Parameters

painter

the Painter to provide the bitmap


@Composable
fun rememberIconImage(@DrawableRes resourceId: Int): IconImage

Create and remember a Bitmap with resourceId.

Return

a Bitmap

Parameters

resourceId

the resource id to be loaded to the image