GdipDrawCurve3

 

 

Description

Draws a cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawCurve3(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPointF *points,

    INT count,

    INT offset,

    INT numberOfSegments,

    REAL tension

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawCurve3 ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG, _

    BYVAL offset AS LONG, _

    BYVAL numberOfSegments AS LONG, _

    BYVAL tension 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 splines.

points

[in] Pointer to an array of PointF structures that specify the coordinates that the cardinal spline passes through.

count

[in] Long integer value that specifies the number of elements in the points array.

offset

[in] Long integer value that specifies the element in the points array that specifies the point at which the cardinal spline begins.

numberOfSegments

[in] Integer that specifies the number of segments in the cardinal spline.

tension

[in] Single precision value that specifies how tightly the curve bends though the coordinates of the cardinal spline.

Remarks

A segment is defined as a curve that connects two consecutive points in the cardinal spline. The ending point of each segment is the starting point for the next. The numberOfSegments parameter must not be greater than the count parameter minus the offset parameter plus one.

 

Valid HTML 4.01 Transitional