Share via


CDC::PolyBezierTo

Draws one or more Bzier splines.

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

Parameters

  • lpPoints
    Points to an array of POINT data structures that contains the endpoints and control points.

  • nCount
    Specifies the number of points in the lpPoints array. This value must be three times the number of splines to be drawn, because each Bzier spline requires two control points and an end point.

Return Value

Nonzero if the function is successful; otherwise 0.

Remarks

This function draws cubic Bzier splines by using the control points specified by the lpPoints parameter. The first spline is drawn from the current position to the third point by using the first two points as control points. For each subsequent spline, the function needs exactly three more points, and uses the end point of the previous spline as the starting point for the next. PolyBezierTo moves the current position to the end point of the last Bzier spline. The figure is not filled. This function draws lines by using the current pen.

Example

See the example for CDC::BeginPath.

Requirements

Header: afxwin.h

See Also

Reference

CDC Class

Hierarchy Chart

CDC::MoveTo

CDC::PolyBezier

PolyBezierTo

Other Resources

CDC Members