Jetpack Compose Canvas BlendMode.SRC_IN makes even background transparent
问题 I'm trying to add an overlay color on top of a PNG image (with a transparent background) using BlendMode.SRC_IN but the background becomes black instead of the set background color as if masking out the background pixels as well. @Composable fun Icon( fraction: Float, image: ImageAsset, defaultColor: Color = Color(0xFFEEEEEE), progressColor: Color = Color(0xFF888888), size: Dp = image.width.dp ) { Box(modifier = Modifier.size(size = size)) { Canvas(modifier = Modifier.fillMaxSize()) {