TcxCanvas.Pie(TRect,Integer,Integer) Method
Draws a sector of a circle or ellipse on the canvas.
Declaration
procedure Pie(const R: TRect; AStartAngle: Integer; ASweepAngle: Integer); reintroduce; overload;
Parameters
Name | Type |
---|---|
R | TRect |
AStartAngle | Integer |
ASweepAngle | Integer |
Remarks
Call any of these overloaded procedure variants to draw a pie-shaped wedge of a circle or ellipse. The Pie procedures use the Brush and Pen settings to draw a shape.
Overloaded Variant | Description |
---|---|
1 | This procedure variant accepts the coordinates of the left-top and right-bottom corners of the base shape’s bounding rectangle as the X1, Y1, X2, and Y2 parameters. Two radiuses determine the sector size and position. Use the X3, Y3, X4, and Y4 parameters to specify the coordinates of the two radial points (that is, the points that these two radiuses intersect). The Pie procedure draws a full ellipse or circle if the radial points match. |
2 | This overloaded procedure variant works similarly to the first variant but accepts the base shape’s bounding rectangle as the R parameter and two radial points as the ARadial1 and ARadial2 parameters. |
3 | This procedure variant accepts the base shape’s bounding rectangle as the R parameter like the second variant but accepts radial angles instead of points. Pass the start and sweep angles in degrees as the AStartAngle and ASweepAngle parameters to determine the size and position of the resulting sector. The Pie procedure draws a full ellipse or circle if the radial points match. |
See Also