I am using canvas composable to draw an image bitmap and get the result like this
This is my code to draw the image and the image source is a landscape image
Canvas(modifier = Modifier.fillMaxSize(), onDraw = {
drawImage(imageBitmap, dstSize = IntSize(size.width.toInt(), size.height.toInt()),)
})
Is there any way to keep the image not stretching while drawing it in canvas? Really appreciate any suggestions
--- Update ---
This is the result I expect

