CDC::PolyBezier

BOOLPolyBezier(constPOINT*lpPoints,intnCount**);**

Return Value

Nonzero if the function is successful; otherwise 0.

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 Bézier spline requires two control points and an endpoint, and the initial spline requires an additional starting point.

Remarks

Draws one or more Bézier splines. This function draws cubic Bézier 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.

CDC OverviewClass MembersHierarchy Chart

See Also   CDC::PolyBezierTo,