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