Table of Contents

TTMSFNCGraphicsSVGEngine.DrawRoundRectangle Method

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

API unit family: TMSFNCGraphicsSVGEngine Declaring type: 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.