Method Simplify
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
Simplify(ISimplifiedGeometrySink, GeometrySimplificationOption, in Matrix3x2Float?, float?)
Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an ISimplifiedGeometrySink.
void Simplify(ISimplifiedGeometrySink geometrySink, GeometrySimplificationOption simplificationOption = GeometrySimplificationOption.Lines, in Matrix3x2Float? worldTransform = null, float? flatteningTolerance = null)
Parameters
geometrySink
ISimplifiedGeometrySinkThe ISimplifiedGeometrySink to which the simplified geometry is appended.
simplificationOption
GeometrySimplificationOptionA value that specifies whether the simplified geometry should contain curves.
worldTransform
Matrix3x2Float?The transform to apply to the simplified geometry, 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.
Remarks
Other graphics frameworks may call this "flattening" (e.g. Windows Presentation Foundation).