Table of Contents

TTMSFNCGraphicsPDF.DrawRoundRectangle Method

Draws a rounded rectangle in the PDF context.

API unit family: TMSFNCGraphicsPDFEngine Declaring type: TTMSFNCGraphicsPDF Inherited from: TTMSFNCGraphicsPDFEngine

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 coordinate.
ATop Top edge coordinate.
ARight Right edge coordinate.
ABottom Bottom edge coordinate.
ARounding Corner radius. Defaults to 10.
ACorners Which corners to round. Defaults to all four corners.
AModifyRectMode How the rectangle is adjusted for stroke width.