A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



AngleArc

The AngleArc function draws a line segment and an arc. The line segment is drawn from the current position to the beginning of the arc. The arc is drawn along the perimeter of a circle with the given radius and center. The length of the arc is defined by the given start and sweep angles.

VB4-32,5,6
Declare Function AngleArc Lib "gdi32" Alias "AngleArc" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal dwRadius As Long, ByVal eStartAngle As Double, ByVal eSweepAngle As Double) As Long

VB.NET
System.Graphics.DrawArc

Operating Systems Supported
Requires Windows NT 3.1 or later; Win9x/ME: Not supported

Library
Gdi32

Parameter Information
- hdc
Identifies a device context.

- X
Specifies the logical x-coordinate of the center of the circle.

- Y
Specifies the logical y-coordinate of the center of the circle.

- dwRadius
Specifies the radius, in logical units, of the circle. This value must be positive.

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

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

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Last update: 07 April 2006