FMX.Graphics.TCanvas.DrawLine
Delphi
procedure DrawLine(const APt1, APt2: TPointF; const AOpacity: Single); overload;
procedure DrawLine(const APt1, APt2: TPointF; const AOpacity: Single; const ABrush: TStrokeBrush); overload;
C++
void __fastcall DrawLine(const System::Types::TPointF &APt1, const System::Types::TPointF &APt2, const float AOpacity)/* overload */;
void __fastcall DrawLine(const System::Types::TPointF &APt1, const System::Types::TPointF &APt2, const float AOpacity, TStrokeBrush* const ABrush)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TCanvas |
Description
Draws a line defined by two points on the current TCanvas.
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.
The AOpacity
parameter specifies the transparency of the Stroke color.
To customize the drawing pen, use the Stroke, Thickness, Cap, Dash, and Join properties.
See Also
- FMX.Graphics.TCanvas.DrawBitmap
- FMX.Graphics.TCanvas.DrawArc
- FMX.Graphics.TCanvas.DrawEllipse
- FMX.Graphics.TCanvas.DrawPath
- FMX.Graphics.TCanvas.DrawPolygon
- FMX.Graphics.TCanvas.DrawRect
- FMX.Graphics.TCanvas.DrawRectSides
- FMX.Graphics.TCanvas.Stroke
- FMX.Graphics.TStrokeBrush.Cap
- FMX.Graphics.TStrokeBrush.Dash
- FMX.Graphics.TStrokeBrush.Join
- FMX.Graphics.TStrokeBrush.Thickness
- System.Types.TPointF