|
THotPDF.RegisterDeviceN
|
Вверх |
|
Declares a PDF 1.3+ DeviceN colour space backed by N user-supplied spot inks (ISO 32000-1 8.6.6.5). Generalises RegisterSeparation from one colorant to many: six-colour printing, metallic / fluorescent inks, custom PDF/X ink mixes, or any N-channel ink set.
Delphi syntax: function RegisterDeviceN(const ColorantNames: array of AnsiString; const AlternateCS: AnsiString; const TintC1Matrix: array of Extended): AnsiString;
C++ syntax: AnsiString RegisterDeviceN(const AnsiString* ColorantNames, int ColorantNameCount, const AnsiString& AlternateCS, const Extended* TintC1Matrix, int TintC1MatrixCount);
Описание DeviceN принимает N tint operands в [0..1], по одному на colorant, и вычисляет M output components в AlternateCS с помощью linear weighted-blend tint transform, который HotPDF строит внутри как PostScript-calculator Function Type 4. Output для channel m — сумма tint[n] * TintC1Matrix[n*M + m] по всем colorants n, зажатая rendering pipeline к [0..1]
ColorantNames — массив из N ink names. Каждая запись пишется как PDF name; пробелы экранируются как #20 согласно PDF 1.7 7.3.5. Специальное имя 'None' помечает неиспользуемый colorant slot. Name list определяет N input dimensions результирующего colour space AlternateCS - TintC1Matrix - row-major
Возвращаемое значение: auto-generated name (DevN1, DevN2, ...). Возвращает empty string, когда StrictVersionLock включен и active Version ниже PDF 1.3; иначе document version auto-bumps to 1.3
Code Example
См. также RegisterSeparation, RegisterLabColorSpace, Version, PDF Filter Support
|