THotPDF.RegisterNChannelColorSpace Method
Registers a process-only NChannel colour space using the PDF 1.6 DeviceN attributes form
声明
function RegisterNChannelColorSpace(const ColorantNames: array of AnsiString; const AlternateCS: AnsiString; const TintC1Matrix: array of Extended): AnsiString;
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
ColorantNames | 将 NChannel 过程分量映射到过程颜色空间的名称 |
AlternateCS | DeviceGray, DeviceRGB,或 DeviceCMYK process and alternate colour space |
TintC1Matrix | Tint transform matrix mapping colorant values into the alternate colour space |
ProcessColorantNames | 出现在 master 着色剂数组中的有序 process 分量 |
TintTransform | 把 master 着色剂映射到替代色彩空间的间接 N 分量函数 |
SpotColorants | 专色名称、Separation tint 函数、可选 solidities 和可选 dot-gain 函数 |
PrintingOrder | 所有 process 与专色着色剂的可选排列 |
返回值
颜色空间资源名称,供页面的填充和描边颜色空间 API 使用
使用说明
- Emits a five-element
DeviceNarray whose attributes dictionary contains/Subtype /NChanneland a matching/Processdictionary - 需要 PDF 1.6 或更高版本,并会拒绝空的、重复的、
All和None分量名称 DeviceGray需要一个分量,DeviceRGB需要三个有序分量,不完整的DeviceCMYK集合则使用保留的Cyan、Magenta、Yellow和Black名称- This overload is process-only because spot NChannel components require individual Separation definitions in the
/Colorantsdictionary/Process分量,以及包含/Solidities、/PrintingOrder和/DotGain的可选/MixingHints - master、process 和 spot 数组必须恰好覆盖每个着色剂一次;tint 与 dot-gain 函数必须是形状合法的间接对象;solidities 必须落在 0 到 1
- 同一文档中用不同的替代色彩空间或 tint 函数注册同一专色名,会在输出之前失败