[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Draws Bézier curves.
Source position: winapih.inc line 211
public function TWidgetSet.PolyBezier( |
DC: HDC; |
Points: PPoint; |
NumPts: Integer; |
Filled: Boolean; |
Continuous: Boolean |
):Boolean; virtual; |
DC |
|
The device context. |
Points |
|
The array of points. |
NumPts |
|
The number of points in Points. |
Filled |
|
True draws a Polygon. |
Continuous |
|
True uses the end-point as the starting point of the next segment. |
False on failure.
Use Polybezier to draw cubic Bézier curves.
The first curve is drawn from the first point to the fourth point with the second and third points being the control points.
If the Continuous flag is TRUE then each subsequent curve requires three more points, using the end-point of the previous Curve as its starting point.
If the Continous flag is set to FALSE, then each subsequent Curve requires 4 additional points, which are used exactly as in the first curve.
Any additonal points which do not add up to a full bezier (4 for Continuous, 3 otherwise) are ignored. There must be at least 4 points for an drawing to occur.
If the Filled Flag is TRUE then the resulting Poly-Bézier will be drawn as a Polygon.
lazarus-ccr.sourceforge.net |