Skip to main content
Table of Contents

TTMSFNCGraphicsContextGeneral.DrawLine Method

Draws a straight line between two points using the specified stroke style.

API unit family: TMSFNCGraphics.General Declaring type: TTMSFNCGraphicsContextGeneral

Syntax

FMX.TMSFNCGraphics.General.hppPascalC++
procedure DrawLine(AStroke: TTMSFNCGraphicsStroke; AFromPoint: TPointF; AToPoint: TPointF; AModifyPointModeFrom: TTMSFNCGraphicsModifyPointMode = gcpmRightDown; AModifyPointModeTo: TTMSFNCGraphicsModifyPointMode = gcpmRightDown); override;
virtual void __fastcall DrawLine(TTMSFNCGraphicsStroke* AStroke, const System::Types::TPointF &AFromPoint, const System::Types::TPointF &AToPoint, TTMSFNCGraphicsModifyPointMode AModifyPointModeFrom = (TTMSFNCGraphicsModifyPointMode)(0x2), TTMSFNCGraphicsModifyPointMode AModifyPointModeTo = (TTMSFNCGraphicsModifyPointMode)(0x2));

Parameters

Name Description
AStroke The stroke style to apply to the line.
AFromPoint The start point of the line.
AToPoint The end point of the line.
AModifyPointModeFrom Pixel alignment hint for the start point.
AModifyPointModeTo Pixel alignment hint for the end point.