Join Slack
Powered by
<How to get transparent while erasing the canvas i...
# stackoverflow
u
user
07/18/2022, 2:01 PM
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,...
2
Views
Open in Slack
Previous
Next