Table of Contents

Method GetWidenedBounds

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

GetWidenedBounds(float, IStrokeStyle?, in Matrix3x2Float?, float?)

Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.

RectFloat GetWidenedBounds(float strokeWidth, IStrokeStyle? strokeStyle = null, in Matrix3x2Float? worldTransform = null, float? flatteningTolerance = null)

Parameters

strokeWidth float

The amount by which to widen the geometry by stroking its outline.

strokeStyle IStrokeStyle

The style of the stroke that widens the geometry. May be null.

worldTransform Matrix3x2Float?

A transform to apply to the geometry after the geometry is transformed and after the geometry has been stroked, or null for no transform.

flatteningTolerance float?

The maximum error allowed when constructing a polygonal approximation of the geometry, or null to use FlatteningTolerance.Default. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. Smaller values produce more accurate results but cause slower execution.

Returns

RectFloat

The bounds of the widened geometry.