BOOL PolyBezierTo(hdc, lpPoints, nCount) | |||||
HDC hdc; | /* handle of device context | */ | |||
LPPOINT lpPoints; | /* address of endpoints and control points | */ | |||
DWORD nCount; | /* count of endpoints and control points | */ |
The PolyBezierTo function draws one or more Bezier curves.
hdc
Identifies a device context.
lpPoints
Points to an array of POINT structures which contains the endpoints and the control points. The POINT structure has the following form:
typedef struct tagPOINT { /* pt */
LONG x;
LONG y;
} POINT;
nCount
Specifies the number of points in the lpPoints array. This value must be three times the number of curves to be drawn, since each Bezier curve requires two control points and an end point.
The return value is TRUE if the curves were drawn. Otherwise, it is FALSE.
This function draws cubic Bezier splines using the control points specified by the lpPoints parameter. The first curve is drawn from the current position to the third point, using the first two points as control points. For each subsequent curve, the function needs exactly three more points, and uses the end point of the previous curve as the start point for the next.
PolyBezierTo moves the current position to the end point of the last Bezier curve. The figure is not filled.
This function draws lines with the currently selected pen.
MoveToEx, PolyBezier