AddImageCCITTFromFile
图像处理
描述
使用 CCITT Group 3 或 Group 4 压缩从文件添加 1 位位图图像
语法
Delphi
Function TPDFlib.AddImageCCITTFromFile(Const FileName: WideString; CompressionType, Options: Integer): Integer;
参数
| FileName | 要加载的位图文件 |
|---|---|
| CompressionType | Group 3 1D 为 31,Group 3 2D 为 32,Group 4 2D 为 42 |
| Options | 位 0 写入 BlackIs1;位 1 写入 Interpolate |
返回值
返回新的 ImageID;无法加载或编码位图时返回 0
备注
当偏好 Delphi 类 API 而非手动组装较低级 PDF 对象时,请使用此包装器
另请参阅
AddImageCCITTFromStream, AddImageCCITTFromString, AddImageDirectFromString