Skip to main content
All docs
V24.1

DXGraphicsPath.Flatten(DXMatrix, Single) Method

Applies the specified transform and converts each curve in this GraphicsPath into a sequence of connected line segments.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.1.dll

NuGet Package: DevExpress.Drawing

Declaration

public void Flatten(
    DXMatrix transform,
    float flatness
)

Parameters

Name Type Description
transform DXMatrix

A matrix by which to transform this GraphicsPath before flattening.

flatness Single

Specifies the maximum permitted error between the curve and its flattened approximation. A value of 0.25 is the default. Reducing the flatness value will increase the number of line segments in the approximation.

See Also