DrawBox

矢量图形、页面操作

描述

在选定页面上绘制矩形

语法

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);

参数

Left矩形左边缘的水平坐标
Top矩形上边缘的垂直坐标
Width矩形宽度
Height矩形高度
DrawOptions0 = 轮廓 1 = 填充 2 = 填充和轮廓

返回值

矩形绘制成功后返回 1。