VECTORSPLINE

typedef  struct  _VECTORPOLYBEZIERSPLINE
{
     VECTOROBJECT  Object;
     VECTORPOINT  *Point;
     L_INT  nPointCount;
     VECTORPEN  Pen;
     L_UINT32  dwFlags;
}  VECTORSPLINE,  *pVECTORSPLINE;

The VECTORSPLINE structure holds information about the spline object.

Member

Description

Object

Abstract object.

Point

Pointer to an array of points which controls the spline’s path depnding on the spline type. The number of points should be:

( puDegree[ 0 ] + puDegree[ 1 ] + … + puDegree[ nSecCount – 1 ] ) + 1

nPointCount

Number of points in the points

Pen

VECTORPEN structure that contains information about the pen to use when drawing the vector spline object

dwFlags

Flag that indicates the mode in which to draw the spline. Possible values are:

 

Value

Meaning

 

VECTOR_SPLINE_FITPOINTS

Sets the spline mode to Fit Points. This is the default.

 

VECTOR_SPLINE_CONTROLPOINTS

Sets the spline mode to Control Points.

Comments

The spline can be drawn in two modes:

image\sqrblit.gif Fit Points: The spline path MUST pass through each and every point specified.

image\sqrblit.gif Control Points: The points are used to control the spline path, but not necessarily pass through all of them.