FillImageBlock

块、交互

描述

把已注册的图像绘制进图像块的矩形,完成个性化

语法

Delphi

Function FillImageBlock(Page, BlockIndex: Integer; ImageID: Integer;
  Options: Integer): Integer;

ActiveX

Function PDFlib::FillImageBlock(Page As Long, BlockIndex As Long, ImageID As Long, Options As Long) As Long

DLL

int DLFillImageBlock(int InstanceID, int Page, int BlockIndex, int ImageID, int Options);

参数

Page, BlockIndex块选择器
ImageIDAddImage 类入口点返回的图像 id
Options位 1:填充成功后删除块注释;位 2:拉伸到精确矩形而不保持宽高比

返回值

图像放置成功返回 1;块不存在、不是图像块或图像 id 非法时返回 0

备注

图像在矩形内居中放置,之前的图像选择会被恢复

另请参阅

GetBlockCount, AddBlock, GetBlockType, GetBlockRect