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