Created
March 28, 2026 01:14
-
-
Save skydoves/86fd32471b7273ef5c1f492851bc519c to your computer and use it in GitHub Desktop.
BlurTransformationPlugin implementation
This file contains hidden or 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
| @Immutable | |
| public data class BlurTransformationPlugin( | |
| public val radius: Int = 10, | |
| ) : ImagePlugin.PainterPlugin { | |
| @Composable | |
| override fun compose(imageBitmap: ImageBitmap, painter: Painter): Painter { | |
| return painter.rememberBlurPainter( | |
| imageBitmap = imageBitmap, | |
| radius = radius, | |
| ) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment