Skip to main content
Table of Contents

TTMSFNCGraphicsContext.FillRoundRect Method

Fills a rounded rectangle using AFill settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphicsContext

Syntax

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

Parameters

Name Description
AFill Fill settings (color, kind, gradient) 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.