Table of Contents

Method Compute

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Compute(in Matrix3x2Float, float, float, float)

Computes the appropriate flattening tolerance to pass to APIs that take a flattening tolerance (e.g., CreateFilledGeometryRealization(IGeometry, float?)).

public static float Compute(in Matrix3x2Float matrix, float dpiX = 96, float dpiY = 96, float maxZoomFactor = 1)

Parameters

matrix Matrix3x2Float
dpiX float
dpiY float
maxZoomFactor float

Returns

float

Remarks

This is a wrapper around Direct2D's ComputeFlatteningTolerance method.

Compute(in Matrix3x2Float, Vector2Float, float)

Computes the appropriate flattening tolerance to pass to APIs that take a flattening tolerance (e.g., CreateFilledGeometryRealization(IGeometry, float?)).

public static float Compute(in Matrix3x2Float matrix, Vector2Float dpi, float maxZoomFactor = 1)

Parameters

matrix Matrix3x2Float
dpi Vector2Float
maxZoomFactor float

Returns

float

Remarks

This is a wrapper around Direct2D's ComputeFlatteningTolerance method.