I want a Black and white mode
Surface(color = MaterialTheme.colors.background,) {
MainPage()//Text Image
Canvas(modifier = Modifier.fillMaxSize()){
drawRect(
color = Color.White,
blendMode = BlendMode.Saturation
)
}
}
but BlendMode Added in API level 29 BlendMode
what about 28- ? my test phone is API 26 android 8.0 , white screen
in android View
mGrayMatrix.setSaturation(0f)
mGrayPaint.colorFilter = ColorMatrixColorFilter(mGrayMatrix)
view.setLayerType(View.LAYER_TYPE_HARDWARE, mGrayPaint)
all view change
CompositionLocalProvider、Brush is too tedious
i need help
in details