Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVclCommon > RSGraphics > Classes > TRSPathData > Methods

TRSPathData.AddArc(TRSPoint,TRSPoint,Single,Single) Method

Scroll Prev Top Next More

Appends an arc to the current TRSPathData as the part of an ellipse contour.

The Center parameter specifies the center of the parent ellipse.

The coordinates of the Radius parameter specify the semi-axes of the parent ellipse:

Radius.x defines the x-semi-axis.
 

Radius.y defines the y-semi-axis.
 

StartAngle specifies the angle, in degrees, measured clockwise, from the x-axis to the line passing through the Center point of the ellipse and intersects the ellipse in the starting point of the arc.

SweepAngle specifies the angle, in degrees, measured clockwise, from the StartAngle parameter to the line passing through the Center point of the ellipse and intersects the ellipse in the ending point of the arc.

If there are previous lines or curves in the current TRSPathData, a line is added to connect the last point of the previous segment to the start point of the arc.

To move the start point of the arc, call    MoveTo or    MoveToRel before calling AddArc.

AddArc splits the arc in simple figures and adds to    Points the points needed to represent them. The added points have different types.

To find the last point of the TRSPathData, call the    LastPoint method.

Namespace: RSGraphics

Parameters

Center

Type: System.Void

Radius

Type: System.Void

StartAngle

Type: Single

SweepAngle

Type: Single

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb