[]
Computes the appropriate flattening tolerance to pass to APIs that take a flattening tolerance (for instance, DeviceContext.CreateFilledGeometryRealization).
public static float ComputeFlatteningTolerance(ref Matrix3x2 matrix, float dpiX = 96, float dpiY = 96, float maxZoomFactor = 1)
Public Shared Function ComputeFlatteningTolerance(ByRef matrix As Matrix3x2, Optional dpiX As Single = 96, Optional dpiY As Single = 96, Optional maxZoomFactor As Single = 1) As Single
| Type | Name | Description |
|---|---|---|
| Matrix3x2 | matrix | The matrix that will be applied subsequently to the geometry being flattened. |
| float | dpiX | The horizontal DPI of the render target that the geometry will be rendered onto (a choice of 96 implies no DPI correction). |
| float | dpiY | The vertical DPI of the render target that the geometry will be rendered onto (a choice of 96 implies no DPI correction). |
| float | maxZoomFactor | The maximum amount of additional scaling (on top of any scaling implied by the matrix or the DPI) that will be applied to the geometry. |
| Type | Description |
|---|---|
| float | The flattening tolerance. |