Table of Contents

TTMSFNCGraphicsContext.DrawRoundRect Method

Strokes a rounded rectangle using AStroke settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphicsContext

Syntax

procedure DrawRoundRect(AStroke: TTMSFNCGraphicsStroke; ARect: TRectF; ARounding: Single; ACorners: TTMSFNCGraphicsCorners; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); virtual; abstract;

Parameters

Name Description
AStroke Stroke settings (color, width, kind) to apply.
ARect Bounding rectangle in floating-point pixels.
ARounding Corner radius in pixels.
ACorners Set of corners to round; unselected corners remain square.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.