CDC::PolyBezier

Draws one or more Bzier splines.

BOOL PolyBezier(
   const POINT* lpPoints,
   int nCount 
);

Parameters

  • lpPoints
    Points to an array of POINT data structures that contain the endpoints and control points of the spline(s).

  • nCount
    Specifies the number of points in the lpPoints array. This value must be one more than three times the number of splines to be drawn, because each Bzier spline requires two control points and an endpoint, and the initial spline requires an additional starting point.

Return Value

Nonzero if the function is successful; otherwise 0.

Remarks

This function draws cubic Bzier splines by using the endpoints and control points specified by the lpPoints parameter. The first spline is drawn from the first point to the fourth point by using the second and third points as control points. Each subsequent spline in the sequence needs exactly three more points: the end point of the previous spline is used as the starting point, the next two points in the sequence are control points, and the third is the end point.

The current position is neither used nor updated by the PolyBezier function. The figure is not filled. This function draws lines by using the current pen.

Requirements

Header: afxwin.h

See Also

Reference

CDC Class

Hierarchy Chart

CDC::PolyBezierTo

PolyBezier

Other Resources

CDC Members