Skip to main content
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

FMX.TMSFNCGraphics.General.hppPascalC++
procedure DrawRoundRect(AStroke: TTMSFNCGraphicsStroke; ARect: TRectF; ARounding: Single; ACorners: TTMSFNCGraphicsCorners; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); override;
virtual void __fastcall DrawRoundRect(TTMSFNCGraphicsStroke* AStroke, const System::Types::TRectF &ARect, float ARounding, TTMSFNCGraphicsCorners ACorners, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2));

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.