ICCBasedColorSpace
Overview
ICCBasedColorSpace is a class in Aspose.PDF FOSS for Java.
Inherits from: ColorSpaceBase.
ICCBased color space (ISO 32000-1:2008, §8.6.5.5).
This class provides 6 methods for working with ICCBasedColorSpace objects in Java programs.
Available methods include: ICCBasedColorSpace, getAlternate, getName, getNumberOfComponents, resolve, toRGBInt.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: alternate, name, numberOfComponents.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Gets the name. |
numberOfComponents | int | Read | Gets the number of components. |
alternate | ColorSpaceBase | Read | Returns the alternate (fallback) color space used for conversions. |
Methods
| Signature | Description |
|---|---|
ICCBasedColorSpace(iccStream: PdfStream, parser: PDFParser) | Creates an ICCBasedColorSpace from a profile stream. |
getName() → String | Returns the name. |
getNumberOfComponents() → int | Returns the number of components. |
toRGBInt(comps: double[]) → int | Converts via the embedded ICC profile (JDK CMM) when available, |
| otherwise via the /Alternate (or N-derived Device*) color space. | |
getAlternate() → ColorSpaceBase | Returns the alternate (fallback) color space used for conversions. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |