DrawBox

Vector graphics, Page manipulation

Description

Draw a rectangle on the selected page.

Syntax

Delphi

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

ActiveX

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

DLL

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

Parameters

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

Return values

Returns 1 when the rectangle has been drawn.