|
THotPDF.RegisterDeviceN
|
傳回頂部 |
|
Declares a PDF 1.3+ DeviceN color space backed by N user-supplied spot inks (ISO 32000-1 8.6.6.5). Generalises RegisterSeparation from one colorant to many: six-color printing, metallic / fluorescent inks, custom PDF/X ink mixes, or any N-channel ink set.
Delphi 語法: ColorantNames - N 個 ink names 的 array。每個 entry 會寫為 PDF name;spaces 依 PDF 1.7 7.3.5 escape 為 #20。special name 'None' 會標記 unused colorant slot。name list 定義 resulting color space 的 N 個 input dimensions
C++ 語法: AnsiString RegisterDeviceN(const AnsiString* ColorantNames, int ColorantNameCount, const AnsiString& AlternateCS, const Extended* TintC1Matrix, int TintC1MatrixCount);
說明 DeviceN 會接受 N 個位於 [0..1] 的 tint operands,每個 colorant 一個,並使用 HotPDF 在內部建立為 PostScript-calculator Function Type 4 的 linear weighted-blend tint transform,在 AlternateCS 中計算 M 個 output components。channel m 的輸出是所有 colorants n 的 tint[n] * TintC1Matrix[n*M + m] 加總,並由 rendering pipeline clamp 到 [0..1]
ColorantNames - N 個 ink names 的 array。每個 entry 會寫為 PDF name;spaces 依 PDF 1.7 7.3.5 escape 為 AlternateCS - TintC1Matrix - row-major
傳回值: 自動產生的 name(DevN1、DevN2、...)。當 StrictVersionLock 啟用且目前 Version 低於 PDF 1.3 時會傳回空字串;否則檔案版本會自動提升到 1.3
Code Example
請參閱 RegisterSeparation, RegisterLabColorSpace, Version, PDF 篩選器支援
|