CalRGBColorSpace
Overview
CalRGBColorSpace is a class in Aspose.PDF FOSS for Java.
Inherits from: ColorSpaceBase.
CalRGB color space (ISO 32000-1:2008, §8.6.5.3).
This class provides 6 methods for working with CalRGBColorSpace objects in Java programs.
Available methods include: CalRGBColorSpace, getName, getNumberOfComponents, resolve, toRGB, toRGBInt.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: name, numberOfComponents.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Gets the name. |
numberOfComponents | int | Read | Gets the number of components. |
Methods
| Signature | Description |
|---|---|
CalRGBColorSpace(params: PdfDictionary) | Creates a CalRGB color space from its parameter dictionary. |
toRGB(r: double, g: double, b: double) → double[] | Converts CalRGB values (each 0..1) to sRGB components. |
getName() → String | Returns the name. |
getNumberOfComponents() → int | Returns the number of components. |
toRGBInt(comps: double[]) → int | CalRGB -> sRGB via gamma + XYZ matrix. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |