BlurEffect

Class

Common
expect 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

renderEffectOptional input RenderEffect to be blurred
radiusXBlur radius in the horizontal direction
radiusYBlur radius in the vertical direction
edgeTreatmentStrategy used to render pixels outside of bounds of the original input
Android
actual class BlurEffect
actual constructor(
    private val renderEffect: RenderEffect?,
    private val radiusX: Float,
    private val radiusY: Float,
    private val edgeTreatment: TileMode,
) : RenderEffect()