createBlurRenderEffect

@RequiresApi(value = 31)
actual fun createBlurRenderEffect(radiusX: Float, radiusY: Float, tileMode: TileMode, input: PlatformRenderEffect?, crop: Rect?): PlatformRenderEffect?

Creates a blur PlatformRenderEffect.

Returns null when both radiusX and radiusY are <= 0, indicating no blur is needed.

Parameters

radiusX

Blur radius in the X direction (pixels)

radiusY

Blur radius in the Y direction (pixels)

expect fun createBlurRenderEffect(radiusX: Float, radiusY: Float, tileMode: TileMode, input: PlatformRenderEffect? = null, crop: Rect? = null): PlatformRenderEffect?

Creates a blur PlatformRenderEffect.

Returns null when both radiusX and radiusY are <= 0, indicating no blur is needed.

Parameters

radiusX

Blur radius in the X direction (pixels)

radiusY

Blur radius in the Y direction (pixels)

actual fun createBlurRenderEffect(radiusX: Float, radiusY: Float, tileMode: TileMode, input: PlatformRenderEffect?, crop: Rect?): PlatformRenderEffect?

Creates a blur PlatformRenderEffect.

Returns null when both radiusX and radiusY are <= 0, indicating no blur is needed.

Parameters

radiusX

Blur radius in the X direction (pixels)

radiusY

Blur radius in the Y direction (pixels)