CalGrayColorSpace
Overview
CalGrayColorSpace is a class in Aspose.PDF FOSS for Java.
Inherits from: ColorSpaceBase.
CalGray color space (ISO 32000-1:2008, §8.6.5.2).
This class provides 8 methods for working with CalGrayColorSpace objects in Java programs.
Available methods include: CalGrayColorSpace, getGamma, getName, getNumberOfComponents, getWhitePoint, resolve, toRGB, toRGBInt.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: gamma, name, numberOfComponents, whitePoint.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Gets the name. |
numberOfComponents | int | Read | Gets the number of components. |
gamma | double | Read | Returns the gamma exponent. |
whitePoint | double[] | Read | Returns the white point [Xw, Yw, Zw]. |
Methods
| Signature | Description |
|---|---|
CalGrayColorSpace(params: PdfDictionary) | Creates a CalGray color space from its parameter dictionary. |
toRGB(gray: double) → double[] | Converts a CalGray value (0..1) to sRGB components. |
getName() → String | Returns the name. |
getNumberOfComponents() → int | Returns the number of components. |
toRGBInt(comps: double[]) → int | CalGray -> sRGB via gamma + white point. |
getGamma() → double | Returns the gamma exponent. |
getWhitePoint() → double[] | Returns the white point [Xw, Yw, Zw]. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |