Draws a line defined by two points on the current canvas.
DrawLine is implemented by the TCanvas descendants to draw a line defined by two points, with the current Stroke.
The APt1 and APt2 parameters are the two TPointF values. These parameters specify the end points of the line to draw.
To customize the drawing pen, use the
Stroke or Pen properties.
Namespace: RSGdiPlusGraphics
Delphi |
public |
Parameters
APt1
Type: TPoint
Specifies the start point of the line
APt2
Type: TPoint
Specifies the end point of the line
AOpacity
Type: Single
Specifies the transparency of the Stroke color.
ABrush
Type: TRSGPPen
Specifies the pen to fill the line with