ComponentOne Bitmap for UWP
ComputeFlatteningTolerance Method

C1.UWP.DX Assembly > C1.Util.DX.Direct2D Namespace > D2D1 Class : ComputeFlatteningTolerance Method
The matrix that will be applied subsequently to the geometry being flattened.
The horizontal DPI of the render target that the geometry will be rendered onto (a choice of 96 implies no DPI correction).
The vertical DPI of the render target that the geometry will be rendered onto (a choice of 96 implies no DPI correction).
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.
Computes the appropriate flattening tolerance to pass to APIs that take a flattening tolerance (for instance, DeviceContext.CreateFilledGeometryRealization).
Syntax
'Declaration
 
Public Shared Function ComputeFlatteningTolerance( _
   ByRef matrix As Matrix3x2, _
   Optional ByVal dpiX As System.Single, _
   Optional ByVal dpiY As System.Single, _
   Optional ByVal maxZoomFactor As System.Single _
) As System.Single
public static System.float ComputeFlatteningTolerance( 
   ref Matrix3x2 matrix,
   System.float dpiX,
   System.float dpiY,
   System.float maxZoomFactor
)

Parameters

matrix
The matrix that will be applied subsequently to the geometry being flattened.
dpiX
The horizontal DPI of the render target that the geometry will be rendered onto (a choice of 96 implies no DPI correction).
dpiY
The vertical DPI of the render target that the geometry will be rendered onto (a choice of 96 implies no DPI correction).
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.

Return Value

The flattening tolerance.
See Also

Reference

D2D1 Class
D2D1 Members