DeviceCMYK
DeviceCMYK
Overview
DeviceCMYK 是一个类在Java的FOSS中. 继承人: ColorSpaceBase.
设备CMYK颜色空间 (ISO 32000-1:2008,第8.6.4.4条).
本类提供了4种方法,用于在Java程序中使用DeviceCMYK对象. 有的方法包括: getName, getNumberOfComponents, resolve, toRGBInt. 所有公众成员在安装了Java的FOSS包后,可以访问任何 Java应用程序. 特性: INSTANCE, name, numberOfComponents.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | 得到了这个名字. |
numberOfComponents | int | Read | 得到了组件数. |
INSTANCE | DeviceCMYK | Read | 单人实例. |
Methods
| Signature | Description |
|---|---|
getName() → String | 返回名称. |
getNumberOfComponents() → int | 返回组件数量. |
toRGBInt(c: double, m: double, y: double, k: double) → int | 使用标准的倍数式 (“没有ICC配置文件”) 公式将CMYK组件 [0..1]转换为包装ARGB int.R = (1 - C) * (1 - K) * 255 G = (1 - M) * (1 - K) * 255 B = (1 - Y) * (1 - K) * 255这保留了代数初始函数纯C图为 ColorSpaceTest,纯K 为 ColorSpaceTest,注册黑色AsposeColorActionPortedTest 变成黑,白色 ColorSpaceTest 到白这是公开API合同所假设的 (见 { (@code ColorSpaceTest.testDeviceCMYKToInt} 和 { @ Code AsposeColorActionPortedTest),并匹配到 both { { . |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |