LoadOutputIntentProfileA

文件屬性與遵循性

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 LoadOutputIntentProfile 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

把所選文件 OutputIntent 使用的隨附 sRGB ICC 設定檔,替換成外部設定檔

先呼叫 SetPDFAMode 建立 OutputIntent 骨架;當封存設定檔必須是 CMYK、灰階或自訂 RGB 設定檔,而不是內建 sRGB 串流時,再呼叫此函式

語法

Delphi

Function DLLoadOutputIntentProfileA(InstanceID: Integer; FileName: PAnsiChar; ColorSpace: PAnsiChar): Integer;

DLL

int DLLoadOutputIntentProfileA(int InstanceID, const char * FileName, const char * ColorSpace);

參數

FileNameICC 設定檔檔案的路徑。
ColorSpace要宣告的輸出設定檔設備類別,例如 DeviceRGB、DeviceCMYK 或 DeviceGray。

傳回值

設定檔載入既有 OutputIntent 時傳回 1。檔案無法讀取、色彩空間不被接受,或文件尚無 OutputIntent 時傳回 0

另見

SetPDFAMode