Table of Contents

TTMSFNCGraphicsSVG.DrawRoundRectangle Method

Emits an SVG rounded rectangle using a <rect> element with rx/ry attributes.

API unit family: TMSFNCGraphicsSVGEngine Declaring type: TTMSFNCGraphicsSVG Inherited from: TTMSFNCGraphicsSVGEngine

Syntax

procedure DrawRoundRectangle(ALeft, ATop, ARight, ABottom: Double; ARounding: Single = 10; ACorners: TTMSFNCGraphicsCorners = [gcTopLeft, gcTopRight, gcBottomLeft, gcBottomRight]; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); override;

Parameters

Name Description
ALeft Left edge.
ATop Top edge.
ARight Right edge.
ABottom Bottom edge.
ARounding Corner radius. Defaults to 10.
ACorners Which corners to round.
AModifyRectMode How the rectangle is adjusted for stroke width.