CONTAINERARCDATA

typedef struct _CONTAINERARCDATA
{
   L_INT nSize ;
   VECTORPOINT vptCenter ;
   L_UINT32 Radius ;
   L_FLOAT StartAngle ;
   L_FLOAT SweepAngle ;
   
} CONTAINERARCDATA, *pCONTAINERARCDATA ;

The CONTAINERARCDATA structure holds the information on an arc object.

Member

Description

nSize

Size of this structure.

vptCenter

VECTORPOINT structure that contains the center coordinates of the arc.

dwRadius

Specifies the radius of the arc. This value must be positive.

fStartAngle

Specifies the start angle, in degrees, relative to the x-axis.

fSweepAngle

Specifies the sweep angle, in degrees, relative to the starting angle.

Comments

Constructing an imaginary circle around the specified center point with the specified radius draws the arc. The starting point of the arc is determined by measuring counterclockwise from the x-axis of the circle by the number of degrees in the start angle. The ending point is similarly located by measuring counterclockwise from the starting point by the number of degrees in the sweep angle. Below is a graphical representation.

image\Pie3.gif