Function

spatialSmoothFeatheringEffect

Defines a spatialSmoothFeatheringEffect based on the percent width and height of the layout.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

spatialSmoothFeatheringEffect

Android
public fun spatialSmoothFeatheringEffect(
    @IntRange(from = 0, to = 50) horizontalPercent: Int,
    @IntRange(from = 0, to = 50) verticalPercent: Int,
): SpatialFeatheringEffect

Defines a spatialSmoothFeatheringEffect based on the percent width and height of the layout.

Parameters

horizontalPercent Value to feather horizontal edges. A value of 5 represents 5% of the width of the visible canvas. Accepted value range is 0 - 50 percent.
verticalPercent Value to feather vertical edges. A value of 5 represents 5% of the height the visible canvas. Accepted value range is 0 - 50 percent.

spatialSmoothFeatheringEffect

Android
public fun spatialSmoothFeatheringEffect(horizontal: Dp, vertical: Dp): SpatialFeatheringEffect

Defines a spatialSmoothFeatheringEffect using Dp.

Parameters

horizontal Non-negative Dp value to feather horizontal edges. Value will be capped at 50% of canvas width if it is too large.
vertical Non-negative Dp value to feather vertical edges. Value will be capped at 50% of canvas height if it is too large.

spatialSmoothFeatheringEffect

Android
public fun spatialSmoothFeatheringEffect(
    horizontal: Float,
    vertical: Float,
): SpatialFeatheringEffect

Defines a spatialSmoothFeatheringEffect using pixels.

Parameters

horizontal Non-negative pixels value to feather horizontal edges. Value will be capped at 50% of canvas width if it is too large.
vertical Non-negative pixels value to feather vertical edges. Value will be capped at 50% of canvas height if it is too large.