<How to get transparent while erasing the canvas i...
# stackoverflow
u
How to get transparent while erasing the canvas in Jetpack Compose , now I'm getting white color? Canvas( modifier = modifier .background(Color.Transparent) ) { with(drawContext.canvas.nativeCanvas) { val checkPoint = saveLayer(null, null) drawImage( image = bitmap, srcSize = IntSize(bitmap.width, bitmap.height), dstSize = IntSize(canvasWidth, canvasHeight) ) drawPath( path = erasePath, style = Stroke( width = 30f,...