DrawRoundedBox

Vector graphics, Page layout

Description

Draw a rectangle with rounded corners on the selected page.

Syntax

Delphi

Function TPDFlib.DrawRoundedBox(Left, Top, Width, Height, Radius: Double; DrawOptions: Integer): Integer;

ActiveX

Function PDFlib::DrawRoundedBox(Left As Double, Top As Double, Width As Double, Height As Double, Radius As Double, DrawOptions As Long) As Long

DLL

int DLDrawRoundedBox(int InstanceID, double Left, double Top, double Width, double Height, double Radius, int DrawOptions);

Parameters

LeftHorizontal co-ordinate of left edge of rectangle
TopVertical co-ordinate of top edge of rectangle
WidthRectangle width
HeightRectangle height
RadiusRadius of the corner arcs
DrawOptions0 = Outline 1 = Fill 2 = Fill and outline

Return values

Returns 1 after the rounded rectangle has been added to the page content