Description
Adds a closed cardinal spline to this path.
Syntax
GpStatus WINGDIPAPI GdipAddPathClosedCurve(
GpPath *path,
GDIPCONST
GpPointF *points,
INT count
);
PowerBASIC Syntax
DECLARE FUNCTION GdipAddPathClosedCurve ( _
BYVAL path AS
DWORD, _
BYREF pPoints
AS PointF, _
BYVAL count AS
LONG _
) AS LONG
Parameters
path
[in] Pointer to a GraphicsPath
object.
points
[in] Pointer to an array of points that define
the cardinal spline. The cardinal spline is a curve that passes through
each point in the array.
count
[in] Long integer value that specifies the
number of elements in the points array.
Remarks
You should keep a copy of the points array if
those points will be needed later. The GraphicsPath
object does not store the points passed to the GdipAddPathClosedCurve
function; instead, it converts the cardinal spline to a sequence of
Bézier splines and stores the points that define those
Bézier splines. You cannot retrieve the original array of
points from the GraphicsPath object.
|