CalGrayColorSpace
CalGrayColorSpace
Overview
CalGrayColorSpace 是一个类在Java的FOSS中. 继承人: ColorSpaceBase.
颜色空间 (ISO 32000-1:2008,第8.6.5.2节).
这个类提供了8种方法,用于在Java程序中使用CalGrayColorSpace对象. 有的方法包括: CalGrayColorSpace, getGamma, getName, getNumberOfComponents, getWhitePoint, resolve, toRGB, toRGBInt. 所有公众成员在安装了Java的FOSS包后,可以访问任何 Java应用程序. 特性: gamma, name, numberOfComponents, whitePoint.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | 得到了这个名字. |
numberOfComponents | int | Read | 得到了组件数. |
gamma | double | Read | 返回了高马指数. |
whitePoint | double[] | Read | 返回白点 [Xw,Yw和ZW]. |
Methods
| Signature | Description |
|---|---|
CalGrayColorSpace(params: PdfDictionary) | 从参数词典中创建一个CalGray 颜色空间. |
toRGB(gray: double) → double[] | 将CalGray值 (0..1) 转换为sRGB组件. |
getName() → String | 返回名称. |
getNumberOfComponents() → int | 返回组件数量. |
toRGBInt(comps: double[]) → int | 通过玛+白点的sRGB. |
getGamma() → double | 返回了高马指数. |
getWhitePoint() → double[] | 返回白点 [Xw,Yw和ZW]. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |