[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.D2D1.ComputeFlatteningTolerance

ComputeFlatteningTolerance Method

ComputeFlatteningTolerance(ref Matrix3x2, float, float, float)

Computes the appropriate flattening tolerance to pass to APIs that take a flattening tolerance (for instance, DeviceContext.CreateFilledGeometryRealization).

Declaration
public static float ComputeFlatteningTolerance(ref Matrix3x2 matrix, float dpiX = 96, float dpiY = 96, float maxZoomFactor = 1)
Parameters
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.

Returns
Type Description
float

The flattening tolerance.