|
Name
|
Description
|
|
DrawLine(TPoint,TPoint)
|
Overloaded. Draws a line defined by two points on the current TCanvas.
DrawLine draws a line defined by two points, with the current Pen.
The APt1 and APt2 parameters are the two TPoint values. These parameters specify the end points of the line to draw.
|
|
DrawLine(TRSPoint,TRSPoint)
|
Overloaded. Draws a line defined by two points on the current TCanvas.
DrawLine draws a line defined by two points, with the current Pen.
The APt1 and APt2 parameters are the two TRSPoint/TPointF values. These parameters specify the end points of the line to draw.
|
|
DrawPath(TRSPathData,Single)
|
Draws a path on the current TCanvas.
DrawPath draws a TRSPathData, with the current Pen.
The APath parameter specifies the TRSPathData to be drawn.
The AOpacity parameter is ignored in VCL but is provided for compatibility.
If APath is empty, DrawPath does nothing. In this case, DrawPath does not raise any errors.
Note
|
Before calling DrawPath, make sure that APath is created.
|
|
|
FillPath(TRSPathData,Single)
|
Fills a path on the current TCanvas.
FillPath fill a TRSPathData, with the current Brush.
The APath parameter specifies the TRSPathData to be filled.
The AOpacity parameter is ignored in VCL but is provided for compatibility.
If APath is empty, FillPath does nothing. In this case, FillPath
does not raise any errors.
Note
|
Before calling FillPath, make sure that APath is created
|
|
|
Polygon(TRSPoints)
|
Overloaded. Draws a series of lines on the canvas connecting the points passed in and closing the shape by drawing a line from the last point to the first point.
Use Polygon to draw a closed, many-sided shape on the canvas, using the value of the Pen. After drawing the complete shape, Polygon fills the shape using the value of the Brush.
The Points parameter is an array of points that give the vertices of the polygon. The first point is always connected to the last point.
Note
|
In Delphi, you can use the Slice function to pass a portion of an array of points to the Polygon method. For example, to form a polygon using the first ten points from an array of 100 points, use the Slice function as follows:
Delphi
|
Canvas.Polygon(Slice(PointArray, 10));
|
|
To draw a polygon on the canvas, without filling it, use the RSGraphics.TVclCanvasHelper.Polyline(TRSPoints) method, specifying the first point a second time at the end.
|
|
Polyline(TRSPoints)
|
Overloaded. Draws a series of lines on the canvas connecting the points passed in and closing the shape by drawing a line from the last point to the first point.
Use Polyline to draw a closed, many-sided shape on the canvas, using the value of the Pen.
The Points parameter is an array of points that give the vertices of the polygon. The first point is always connected to the last point.
Note
|
In Delphi, you can use the Slice function to pass a portion of an array of points to the Polygon method. For example, to form a polygon using the first ten points from an array of 100 points, use the Slice function as follows:
Delphi
|
Canvas.Polyline(Slice(PointArray, 10));
|
|
To draw a polygon on the canvas and fill it, use the RSGraphics.TVclCanvasHelper.Polygon(TRSPoints)method, specifying the first point a second time at the end.
|
Top
|