AddImageJPXFromFile

影像處理

描述

把點陣圖檔案編碼為 JPEG 2000,並將結果以 JPXDecode 影像 XObject 加入

語法

Function TPDFlib.AddImageJPXFromFile(Const FileName: WideString; Quality, Lossless: Integer): Integer;

參數

FileNameSource bitmap file
Quality有損品質,1 到 100
Lossless1 選擇可逆的無損編碼,0 選擇有損編碼

傳回值

傳回新的 ImageID;檔案無法解碼或編碼時傳回 0

備註

此影像需要 PDF 1.5,允許時會自動提升輸出版本;PDF/A-1 則拒絕 JPXDecode

另見

AddImageJPXFromStream, AddImageJPXFromString, EncodeImageToJPXFile