Show: Delphi C++
Display Preferences

FMX.Graphics.TCanvas.DrawLine

From RAD Studio API Documentation
Jump to: navigation, search

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, StrokeThickness, StrokeCap, StrokeDash, and StrokeJoin properties.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance