im having a terrible time with this image not taki...
# compose
e
im having a terrible time with this image not taking up the full border. I will post code in thread
Copy code
var painterInfo = BitmapPainter(loadImageBitmap(File(IMG_NAME_ARR[min(anim , 120)]).inputStream()))
    var size by remember { mutableStateOf(IntSize(1,1)) }

Box(modifier = Modifier.border(2.dp,Color.Green).fillMaxWidth().fillMaxHeight().onSizeChanged {
    size = it
}) {
    val x: BoxScope = this
    Image(
        painter =  painterInfo,
        null,
        modifier = Modifier.height(size.height.dp).width(size.width.dp).border(2.dp, Color.Red),
        contentScale = ContentScale.Fit
    )
}
    Text("${size.height} ${size.width}")


}
c
Try a different
ContentScale
e
TY that worked, i used crop
yes black 1