CanvasGeometry.ComputeFlatteningTolerance Method (Single, Single, Matrix3x2) |
Computes the correct flattening tolerance given the specified DPI, maximum zoom level, and geometry transform.
Namespace:
Microsoft.Graphics.Canvas.Geometry
Assembly:
Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntaxpublic static float ComputeFlatteningTolerance(
float dpi,
float maximumZoomFactor,
Matrix3x2 expectedGeometryTransform
)
Parameters
- dpi
- Type: System.Single
- maximumZoomFactor
- Type: System.Single
- expectedGeometryTransform
- Type: System.Numerics.Matrix3x2
Return Value
Type:
Single
Remarks
This computation guarantees that under any scaling up to the maximum zoom level, curves will have no loss of fidelity.
Maximum zoom level is the highest scale factor that the app anticipates applying to the geometry, independent of the geometry transform.
For more information, see
ComputeFlatteningTolerance.
See Also