[]
        
(Showing Draft Content)

C1.Util.IRendering.DrawPath

DrawPath Method

DrawPath(double[], double[], byte[], bool)

Draws a path defined by points and types and fill.

Declaration
void DrawPath(double[] xs, double[] ys, byte[] types, bool close)
Parameters
Type Name Description
double[] xs

Array of x-coordinates.

double[] ys

Array of y-coordinates.

byte[] types

The path types to draw (see remarks).

bool close

Whether is closed path (figure) or not.

Remarks

Path types: 0x00: the start of a figure 0x01: one of the two endpoints of a line 0x02: an endpoint or control point of a Quadratic Bézier (two points) 0x03: an endpoint or control point of a Bézier (three points) 0x80: the last point of a figure 0x81: the last point of the figure in a closed sub path (one point) 0x82: the last point of the figure for Quadratic Bézier curve of the figure in a closed sub path (two points) 0x83: the last point of the figure for Bézier curve of the figure in a closed sub path (three points)