Method Widen
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
Widen(ISimplifiedGeometrySink, float, IStrokeStyle?, in Matrix3x2Float?, float?)
Widens the geometry by the specified stroke and writes the result to an ISimplifiedGeometrySink after it has been transformed by the specified matrix and flattened using the specified tolerance.
void Widen(ISimplifiedGeometrySink geometrySink, float strokeWidth, IStrokeStyle? strokeStyle = null, in Matrix3x2Float? worldTransform = null, float? flatteningTolerance = null)
Parameters
geometrySinkISimplifiedGeometrySinkThe ISimplifiedGeometrySink to which the widened geometry is appended.
strokeWidthfloatThe amount by which to widen the geometry.
strokeStyleIStrokeStyleThe style of stroke to apply to the geometry, or null.
worldTransformMatrix3x2Float?The transform to apply to the geometry after widening it, 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.