Table of Contents

TTMSFNCGraphicsContextGeneral.DrawRoundRect Method

Draws the outline of a rectangle with rounded corners using the specified stroke style.

API unit family: TMSFNCGraphics.General Declaring type: TTMSFNCGraphicsContextGeneral

Syntax

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

Parameters

Name Description
AStroke The stroke style to apply.
ARect The rectangle to outline.
ARounding The corner radius in canvas units.
ACorners The set of corners to round; unset corners remain square.
AModifyRectMode Controls pixel-boundary adjustments applied to the rectangle.