IndexedColorSpace
Overview
IndexedColorSpace is a class in Aspose.Pdf FOSS for Java.
Inherits from: ColorSpaceBase.
Indexed color space (ISO 32000-1:2008, §8.6.6.3).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | |
numberOfComponents | int | Read | |
base | ColorSpaceBase | Read | Returns the base color space. |
hival | int | Read | Returns the maximum valid index. |
Methods
| Signature | Description |
|---|---|
IndexedColorSpace(base: ColorSpaceBase, hival: int, lookupTable: byte[]) | Creates an IndexedColorSpace. |
fromArray(arr: COSArray, resources: Resources, parser: PDFParser) → IndexedColorSpace | Creates an IndexedColorSpace from a COSArray: [/Indexed base hival lookup]. |
getName() → String | |
getNumberOfComponents() → int | |
getBase() → ColorSpaceBase | Returns the base color space. |
getHival() → int | Returns the maximum valid index. |
lookupColor(index: int) → double[] | Looks up a palette entry, returning the base color space components. |
resolve(csObj: COSBase, resources: Resources, parser: PDFParser) → ColorSpaceBase | Resolves a color space from a PDF object. |