THotPDF.RegisterICCProfile Method
方法摘要: THotPDF.RegisterICCProfile MethodICCBased colour-space resource
宣告
function RegisterICCProfile(const ProfileFileName: AnsiString; NumComponents : Integer; const AlternateCS : AnsiString= 'DeviceRGB'): AnsiString; overload;
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
ProfileFileName | 作為此作業來源或目的地的檔案路徑 |
NumComponents | 元件 |
AlternateCS | 替代色彩空間 |
AlternateCS | Matching DeviceGray, DeviceRGB, or DeviceCMYK fallback; an empty value derives it from the profile |
傳回值
傳回一個 AnsiString 值CS1
使用注意事項
- 在受影響的頁面、資源、欄位或目錄物件最終定案之前,請於預檢(preflight)驗證工作流程中使用此 API
acspsignature, declared size, version, PCS, rendering intent, tag table, tag bounds, and component count are validated before an indirect object is created - The overloads without
NumComponentsinfer one, three, or four components from GRAY, RGB, or CMYK profile data - 在檔案最終定案之前,請保持物件名稱、欄位名稱、資源名稱與傳回的控制代碼穩定不變
- 在透過頁面層級繪製命令使用它們之前,請先註冊具名色彩資源
ICCBasedvector colours and raw image samples to sRGB through the embedded ICC pipeline, honours all PDFrirendering intents, applies configured black-point compensation, and uses/Alternateonly when conversion is unavailable - Use the returned name with
THPDFPage.SetFillColorSpace,SetStrokeColorSpace,SetTransparencyGroupICC, orTHotPDF.RegisterDefaultColorSpace
相關 API
- THotPDF
- THPDFPage
- 目錄
- 目錄