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)

ParameterDescription
x1X-coordinate of the top left corner of the circumscribing rectangle.
y1Y-coordinate of the top left corner of the circumscribing rectangle.
x2X-coordinate of the bottom right corner of the circumscribing rectangle.
y2Y-coordinate of the bottom right corner of the circumscribing rectangle.
iStartStart angle in degrees.
iExtentLength of the arc in degrees.
eModeDrawing 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:

ConstantValueDescription
hbRectFillNone&H0000No fill.
hbRectFillSolid&H0001The drawing is filled with the current background color, previously specified by the BackColor property.
hbRectFillPattern&H0002The drawing is filled with the current pattern, previously specified by the Pattern property.

To indicate the border type, specify one of the following constants:

ConstantValueDescription
hbRectBorderNone&H0000No border.
hbRectBorderSolid&H0010The 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

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A