Created
June 26, 2023 13:45
-
-
Save kaszabimre/dcd297d8877adc6b2555f4a48375324a to your computer and use it in GitHub Desktop.
The setMaskFilter implementation - Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.graphics.BlurMaskFilter | |
import androidx.compose.ui.graphics.NativePaint | |
internal actual fun NativePaint.setMaskFilter(blurRadius: Float) { | |
this.maskFilter = BlurMaskFilter(blurRadius, BlurMaskFilter.Blur.NORMAL) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment