ReverseImage

影像處理

描述

此函式反轉所選影像顏色成分的解讀。例如綠色像素 (0, 255, 0) 會變成紫色像素 (255, 0, 255),黑色像素會變成白色像素。

語法

Delphi

Function TPDFlib.ReverseImage(Reset: Integer): Integer;

ActiveX

Function PDFlib::ReverseImage(Reset As Long) As Long

DLL

int DLReverseImage(int InstanceID, int Reset);

參數

Reset指出是否應移除影像字典中的 /Decode 參數。影像在 Acrobat 4.0 作為 stencil 遮罩使用時必須移除,但不同來源影像類型(BMP、TIFF 與 PNG)結果可能不同,需要實際測試。 0 = 保留 /Decode 陣列並反轉影像 1 = 移除 /Decode 陣列