Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created March 28, 2026 01:14
Show Gist options
  • Select an option

  • Save skydoves/86fd32471b7273ef5c1f492851bc519c to your computer and use it in GitHub Desktop.

Select an option

Save skydoves/86fd32471b7273ef5c1f492851bc519c to your computer and use it in GitHub Desktop.
BlurTransformationPlugin implementation
@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