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
strokeWidthfloatThe amount by which to widen the geometry by stroking its outline.
strokeStyleIStrokeStyleThe style of the stroke that widens the geometry. May be null.
worldTransformMatrix3x2Float?A transform to apply to the geometry after the geometry is transformed and after the geometry has been stroked, or null for no transform.
flatteningTolerancefloat?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.