Sector (procedure) (Graph unit)

Language:
Русский
English

 Sector (procedure)     (Graph unit)


Draws and fills an elliptical sector.

Declaration

 procedure Sector(x, y: Integer; StAngle,EndAngle, XRadius, YRadius: Word);

Target

Real, Protected

Remarks

Using (X, Y) as the center point, XRadius and YRadius specify the horizontal and vertical radii, respectively; Sector draws from StAngle to EndAngle, outlined in the current color and filled with the pattern and color defined by SetFillStyle or SetFillPattern.

A start angle of 0 and an end angle of 360 will draw and fill a complete ellipse. The angles for Arc, Ellipse, FillEllipse, PieSlice, and Sector are counter-clock-wise with 0 degrees at 3 o'clock, 90 degrees at 12 o'clock, and so on.

If an error occurs while filling the sector, GraphResult returns a value of grNoScanMem.

Restrictions

Must be in graphics mode.

See Also

Sample Code

Тэги: Sector
| G+
Код для вставки: :: :: :: ::
Поделиться: // //