Skip to main content
Table of Contents

TTMSFNCGraphicsContextGeneral.FillRoundRect Method

Fills a rectangle with rounded corners using the specified fill style.

API unit family: TMSFNCGraphics.General Declaring type: TTMSFNCGraphicsContextGeneral

Syntax

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

Parameters

Name Description
AFill The fill style to apply.
ARect The rectangle to fill.
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.