Method GetBounds
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
GetBounds(in Matrix3x2Float?)
Retrieves the bounds of the geometry.
RectFloat GetBounds(in Matrix3x2Float? worldTransform = null)
Parameters
worldTransform
Matrix3x2Float?The transform to apply to this geometry before calculating its bounds, or null for no transform.
Returns
- RectFloat
The bounds of the geometry. This method will return RectFloat.Empty if the geometry is empty.
Remarks
This method does not include hollow regions. Use GetWidenedBounds() with a zero strokeWidth if you need to include hollow regions.