Table of Contents

TTMSFNCGraphics.DrawRectangle Method

Strokes a rectangle defined by double coordinates using the current Stroke and Fill settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Overloads

Overload 1

Strokes a rectangle defined by double coordinates using the current Stroke and Fill settings.

procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Double; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;

Parameters

Name Description
ALeft Left edge of the rectangle in floating-point pixels.
ATop Top edge of the rectangle in floating-point pixels.
ARight Right edge of the rectangle in floating-point pixels.
ABottom Bottom edge of the rectangle in floating-point pixels.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 2

Strokes the specified sides of a rectangle defined by double coordinates using the current Stroke and Fill settings.

procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Double; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;

Parameters

Name Description
ALeft Left edge of the rectangle in floating-point pixels.
ATop Top edge of the rectangle in floating-point pixels.
ARight Right edge of the rectangle in floating-point pixels.
ABottom Bottom edge of the rectangle in floating-point pixels.
ASides Set of sides to draw; unselected sides are omitted.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 3

Strokes a rectangle from a TRectF using the current Stroke and Fill settings.

procedure DrawRectangle(ARect: TRectF; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;

Parameters

Name Description
ARect Bounding rectangle in floating-point pixels.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 4

Strokes the specified sides of a rectangle from a TRectF using the current Stroke and Fill settings.

procedure DrawRectangle(ARect: TRectF; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;

Parameters

Name Description
ARect Bounding rectangle in floating-point pixels.
ASides Set of sides to draw; unselected sides are omitted.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 5

Strokes a rectangle defined by integer coordinates using the current Stroke and Fill settings.

procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Integer; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;

Parameters

Name Description
ALeft Left edge of the rectangle in integer pixels.
ATop Top edge of the rectangle in integer pixels.
ARight Right edge of the rectangle in integer pixels.
ABottom Bottom edge of the rectangle in integer pixels.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 6

Strokes the specified sides of a rectangle defined by integer coordinates using the current Stroke and Fill settings.

procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Integer; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;

Parameters

Name Description
ALeft Left edge of the rectangle in integer pixels.
ATop Top edge of the rectangle in integer pixels.
ARight Right edge of the rectangle in integer pixels.
ABottom Bottom edge of the rectangle in integer pixels.
ASides Set of sides to draw; unselected sides are omitted.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 7

Strokes a rectangle from a TRect using the current Stroke and Fill settings.

procedure DrawRectangle(ARect: TRect; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;

Parameters

Name Description
ARect Bounding rectangle in integer pixels.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 8

Strokes the specified sides of a rectangle from a TRect using the current Stroke and Fill settings.

procedure DrawRectangle(ARect: TRect; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;

Parameters

Name Description
ARect Bounding rectangle in integer pixels.
ASides Set of sides to draw; unselected sides are omitted.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.