Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PolyBezierTo

PolyBezierTo function

The PolyBezierTo function draws one or more Bézier curves.

Syntax


BOOL PolyBezierTo(
  _In_       HDC   hdc,
  _In_ const POINT *lppt,
  _In_       DWORD cCount
);

Parameters

hdc [in]

A handle to a device context.

lppt [in]

A pointer to an array of POINT structures that contains the endpoints and control points, in logical units.

cCount [in]

The number of points in the lppt array. This value must be three times the number of curves to be drawn because each Bézier curve requires two control points and an ending point.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

This function draws cubic Bézier curves by using the control points specified by the lppt parameter. The first curve is drawn from the current position to the third point by using the first two points as control points. For each subsequent curve, the function needs exactly three more points, and uses the ending point of the previous curve as the starting point for the next.

PolyBezierTo moves the current position to the ending point of the last Bézier curve. The figure is not filled.

This function draws lines by using the current pen.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Lines and Curves Overview
Line and Curve Functions
MoveToEx
POINT
PolyBezier

 

 

Community Additions

ADD
Show:
© 2015 Microsoft