Description
Draws a Bezier spline.
Syntax
GpStatus WINGDIPAPI GdipDrawBezier(
GpGraphics
*graphics,
GpPen *pen,
REAL x1,
REAL y1,
REAL x2,
REAL y2,
REAL x3,
REAL y3,
REAL x4,
REAL y4
);
PowerBASIC Syntax
DECLARE FUNCTION GdipDrawBezier ( _
BYVAL graphics
AS DWORD, _
BYVAL pen AS
DWORD, _
BYVAL x1 AS
SINGLE, _
BYVAL x1 AS
SINGLE, _
BYVAL x2 AS
SINGLE, _
BYVAL x2 AS
SINGLE, _
BYVAL x3 AS
SINGLE, _
BYVAL x3 AS
SINGLE, _
BYVAL x4 AS
SINGLE, _
BYVAL x4 AS
SINGLE, _
) AS LONG
Parameters
graphics
[in] Pointer to the
Graphics
object.
pen
[in] Pointer to a pen that is used to
draw the Bezier spline.
x1
[in] Simple precision value that
specifies the x-coordinate of the starting point of the Bezier spline.
y1
[in] Simple precision value that
specifies the y-coordinate of the starting point of the Bezier spline.
x2
[in] Simple precision value that
specifies the x-coordinate of the first control point of the Bezier
spline.
y2
[in] Simple precision value that
specifies the y-coordinate of the first control point of the Bezier
spline
x3
[in] Simple precision value that
specifies the x-coordinate of the second control point of the Bezier
spline.
y3
[in] Simple precision value that
specifies the y-coordinate of the second control point of the Bezier
spline.
x4
[in] Simple precision value that
specifies the x-coordinate of the ending point of the Bezier spline.
y4
[in] Simple precision value that
specifies the y-coordinate of the ending point of the Bezier spline
Remarks
A Bezier spline does not pass through its
control points. The control points act as magnets, pulling the curve in
certain directions to influence the way the Bezier spline bends.
|