Table of Contents

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

geometrySink ISimplifiedGeometrySink

The ISimplifiedGeometrySink to which the widened geometry is appended.

strokeWidth float

The amount by which to widen the geometry.

strokeStyle IStrokeStyle

The style of stroke to apply to the geometry, or null.

worldTransform Matrix3x2Float?

The transform to apply to the geometry after widening it, 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.