|
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 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 in [0..1], по одному per colorant, і computes M output components in AlternateCS через linear weighted-blend tint transform, який HotPDF builds internally як PostScript-calculator Function Type 4 Output для channel m є сумою tint[n] * TintC1Matrix[n*M + m] по всіх colorants, clamped to [0..1]
ColorantNames - array з N ink names Кожен entry записується як PDF name; spaces escaped to #20 per PDF 1.7 7.3.5 Special name 'None' marks unused colorant slot Name list defines N input dimensions of resulting color space AlternateCS - TintC1Matrix - row-major
Return value: auto-generated name (DevN1, DevN2, ...) Повертає empty string, коли StrictVersionLock on і active Version нижча за PDF 1.3; інакше document version auto-bumps to 1.3
Code Example
See Also RegisterSeparation, RegisterLabColorSpace, Version, PDF Filter Support
|