AddImageJBIG2DirectFromFile

图像处理

描述

从文件中添加已编码的 JBIG2 图像流作为 PDF 图像 XObject

语法

Delphi

Function TPDFlib.AddImageJBIG2DirectFromFile(Const FileName: WideString; Width, Height, Options: Integer): Integer;

参数

FileName包含 JBIG2 图像流字节的文件
Width图像宽度,单位为像素
Height以像素为单位的图像高度
Options位 0 写入 Interpolate

返回值

返回新的 ImageID;无法读取文件或尺寸无效时返回 0

备注

当偏好 Delphi 类 API 而非手动组装较低级 PDF 对象时,请使用此包装器

另请参阅

AddImageJBIG2DirectFromStream、AddImageJBIG2DirectFromString、AddImageDirectFromString