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

procedure FillRoundRect(AFill: TTMSFNCGraphicsFill; ARect: TRectF; ARounding: Single; ACorners: TTMSFNCGraphicsCorners; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); override;

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.