IndexedColorSpace
IndexedColorSpace
Overview
IndexedColorSpace 是一个类在Java的FOSS中. 继承人: ColorSpaceBase.
索引色空间 (ISO 32000-1:2008,第8.6.6.3条).
这个类提供了9种方法,用于在Java程序中使用IndexedColorSpace对象. 有的方法包括: IndexedColorSpace, fromArray, getBase, getHival, getName, getNumberOfComponents, lookupColor, resolve, toRGBInt. 所有公众成员在安装了Java的FOSS包后,可以访问任何 Java应用程序. 特性: base, hival, name, numberOfComponents.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | 得到了这个名字. |
numberOfComponents | int | Read | 得到了组件数. |
base | ColorSpaceBase | Read | 返回基本颜色空间. |
hival | int | Read | 返回有效最大指数. |
Methods
| Signature | Description |
|---|---|
IndexedColorSpace(base: ColorSpaceBase, hival: int, lookupTable: byte[]) | 创建一个 IndexedColorSpace. |
fromArray(arr: PdfArray, resources: Resources, parser: PDFParser) → IndexedColorSpace | 从一个 PdfArray 创建了一个IndexedColorSpace: [/索引基层查找]. |
getName() → String | 返回名称. |
getNumberOfComponents() → int | 返回组件数量. |
getBase() → ColorSpaceBase | 返回基本颜色空间. |
getHival() → int | 返回有效最大指数. |
lookupColor(index: int) → double[] | 查找一个调色板条目,返回基本的颜色空间组件. |
toRGBInt(comps: double[]) → int | 调色板索引 ->基础组件 ->基本空间的RGB. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |