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

procedure DrawLine(AStroke: TTMSFNCGraphicsStroke; AFromPoint: TPointF; AToPoint: TPointF; AModifyPointModeFrom: TTMSFNCGraphicsModifyPointMode = gcpmRightDown; AModifyPointModeTo: TTMSFNCGraphicsModifyPointMode = gcpmRightDown); override;

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.