Table of Contents

TTMSFNCGraphics.DrawLine Method

Draws a straight line between two integer coordinate points using the current Stroke settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Overloads

Overload 1

Draws a straight line between two integer coordinate points using the current Stroke settings.

procedure DrawLine(AFromPoint: TPoint; AToPoint: TPoint; AModifyPointModeFrom: TTMSFNCGraphicsModifyPointMode = gcpmRightDown; AModifyPointModeTo: TTMSFNCGraphicsModifyPointMode = gcpmRightDown); overload; virtual;

Parameters

Name Description
AFromPoint Starting point of the line in integer pixels.
AToPoint Ending point of the line in integer pixels.
AModifyPointModeFrom Pixel adjustment applied to AFromPoint to align with the physical pixel grid.
AModifyPointModeTo Pixel adjustment applied to AToPoint to align with the physical pixel grid.

Overload 2

Draws a straight line between two floating-point coordinate points using the current Stroke settings.

procedure DrawLine(AFromPoint: TPointF; AToPoint: TPointF; AModifyPointModeFrom: TTMSFNCGraphicsModifyPointMode = gcpmRightDown; AModifyPointModeTo: TTMSFNCGraphicsModifyPointMode = gcpmRightDown); overload; virtual;

Parameters

Name Description
AFromPoint Starting point of the line in floating-point pixels.
AToPoint Ending point of the line in floating-point pixels.
AModifyPointModeFrom Pixel adjustment applied to AFromPoint to align with the physical pixel grid.
AModifyPointModeTo Pixel adjustment applied to AToPoint to align with the physical pixel grid.