{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

BlurredEdgeTreatment.Companion

public static class BlurredEdgeTreatment.Companion


Summary

Public methods

static final @NonNull BlurredEdgeTreatment

Bounded BlurredEdgeTreatment that clips content bounds to a rectangular shape

static final @NonNull BlurredEdgeTreatment

Do not clip the blur result to the boundaries of the original content.

Public methods

getRectangle

public static final @NonNull BlurredEdgeTreatment getRectangle()

Bounded BlurredEdgeTreatment that clips content bounds to a rectangular shape

getUnbounded

public static final @NonNull BlurredEdgeTreatment getUnbounded()

Do not clip the blur result to the boundaries of the original content. Sampling of pixels outside of the content bounds will sample transparent black instead. This is recommended for blurring content that is intended to render outside of the original bounds and may contain transparent pixels in the original bounds (ex. blurring an arbitrary shape or text)

See also
Decal