Jan
04/23/2023, 1:04 PMvar painter by remember {
mutableStateOf<ImageBitmap?>(null)
}
LaunchedEffect(Unit) {
painter = Image.makeFromEncoded(it.file.readBytes()).toComposeImageBitmap()
}
painter?.let { p ->
Image(p, modifier = Modifier.size(120.dp), contentDescription = null)
}
However, my program starts to lag extremely, I suspect the images are too high quality, can I somehow scale them down or sth like that?yschimke
04/23/2023, 1:28 PMJan
04/23/2023, 1:41 PMSergey Y.
04/23/2023, 2:22 PMJan
04/23/2023, 5:30 PM