AddImageJBIG2DirectFromStream

图像处理

描述

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

语法

Delphi

Function TPDFlib.AddImageJBIG2DirectFromStream(InStream: TStream; Width, Height, Options: Integer): Integer;

参数

InStream包含从当前流位置开始的 JBIG2 图像字节的流
Width图像宽度,单位为像素
Height以像素为单位的图像高度
Options位 0 写入 Interpolate

返回值

返回新的 ImageID,尺寸无效时返回 0

备注

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

另请参阅

AddImageJBIG2DirectFromFile、AddImageJBIG2DirectFromString、AddImageDirectFromString