Skip to main content

TransformBounds Method

Transforms the specified bounding rectangle to account for all 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 all shadow's offset, spread, and blur in the collection.

See Also

Reference

BoxShadows Structure
Avalonia.Media Namespace