ReleaseImage

影像處理

描述

釋放文件開啟後加入 PDF 的影像(以 AddImageFromFile 等函式),或以 FindImages 函式找到的影像所使用的暫時記憶體

釋放影像不影響 PDF 本身,已繪製到頁面上的影像不會被移除

影像釋放後 ImageID 即失效,不能再用在 SelectImage 這類函式

語法

Delphi

Function TPDFlib.ReleaseImage(ImageID: Integer): Integer;

ActiveX

Function PDFlib::ReleaseImage(ImageID As Long) As Long

DLL

int DLReleaseImage(int InstanceID, int ImageID);

參數

ImageID要釋放的影像 ID

傳回值

0無法釋放影像。ImageID 參數可能無效,或 ImageID 未指向所選文件中的影像。
1影像釋放成功。