🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

BlurEffect

Source set: Android
public class BlurEffect
Source set: Common
public class BlurEffect(
    renderEffect: RenderEffect?,
    radiusX: Float,
    radiusY: Float = radiusX,
    edgeTreatment: TileMode = TileMode.Clamp,
) : RenderEffect

RenderEffect that will blur the contents of an optional input RenderEffect. If no input RenderEffect is provided, the drawing commands on the GraphicsLayerScope this RenderEffect is configured on will be blurred.

Parameters

renderEffect Optional input RenderEffect to be blurred
radiusX Blur radius in the horizontal direction
radiusY Blur radius in the vertical direction
edgeTreatment Strategy used to render pixels outside of bounds of the original input