Table of Contents

TTMSFNCGraphicsContext.DrawLine Method

Draws a stroked line from AFromPoint to AToPoint using AStroke settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphicsContext

Syntax

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

Parameters

Name Description
AStroke Stroke settings (color, width, kind) to apply.
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.