---
title: "BlurEffect"
description: "[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."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
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

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



<div class='sourceset sourceset-android'>Android</div>


```kotlin
actual class BlurEffect
actual constructor(
    private val renderEffect: RenderEffect?,
    private val radiusX: Float,
    private val radiusY: Float,
    private val edgeTreatment: TileMode,
) : RenderEffect()
```


