Skip to main content
Table of Contents

TTMSFNCGraphicsContext.DrawRoundRect Method

Strokes a rounded rectangle using AStroke settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphicsContext

Syntax

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

Parameters

Name Description
AStroke Stroke settings (color, width, kind) 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.