Home > Language Reference > Classes > Display
Arc Method
Draws an arc.
Syntax
Public Sub Arc(ByVal x1 As Integer, ByVal y1 As Integer, ByVal x2 As Integer, ByVal y2 As Integer, ByVal iStart As Integer, ByVal iExtent As Integer, Optional ByVal eMode As HbRectangle = hbRectFillSolid+hbRectBorderSolid)
| Parameter | Description |
| x1 | X-coordinate of the top left corner of the circumscribing rectangle. |
| y1 | Y-coordinate of the top left corner of the circumscribing rectangle. |
| x2 | X-coordinate of the bottom right corner of the circumscribing rectangle. |
| y2 | Y-coordinate of the bottom right corner of the circumscribing rectangle. |
| iStart | Start angle in degrees. |
| iExtent | Length of the arc in degrees. |
| eMode | Drawing options. |
Remarks
The Arc method draws an arc within the rectangle specified by the x1, y1, x2 and y2 coordinates. The iStart parameter indicates the starting point of the arc expressed in degrees, 0 corresponding to the 3 O'Clock position. The iExtent parameter indicates the length of the arc from the iStart position, expressed in degrees. These two angles are expressed with positive numbers, using counter-clockwise orientation.
The eMode parameter specifies the drawing options, and should be a combination of the following group of constants:
To indicate the fill color, specify one of the following constants:
| Constant | Value | Description |
| hbRectFillNone | &H0000 | No fill. |
| hbRectFillSolid | &H0001 | The drawing is filled with the current background color, previously specified by the BackColor property. |
| hbRectFillPattern | &H0002 | The drawing is filled with the current pattern, previously specified by the Pattern property. |
To indicate the border type, specify one of the following constants:
| Constant | Value | Description |
| hbRectBorderNone | &H0000 | No border. |
| hbRectBorderSolid | &H0010 | The border is drawn with the foreground color, previously specified by the ForeColor property. |
This method enqueues the drawing instruction in the graphics instruction buffer. The arc is only drawn when the buffer is emptied, either because it is full or because the Flush method is called.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |