Skip to main content

TransformBounds Method

Transforms the specified bounding rectangle to account for the shadow's offset, spread, and blur.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Rect TransformBounds(
in Rect rect
)

Parameters

  Rect
The original bounding Rect to transform.

Return Value

Rect
A new Rect that includes the shadow's offset, spread, and blur if the shadow is not inset; otherwise, the original rectangle.

See Also

Reference

BoxShadow Structure
Avalonia.Media Namespace