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).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | |
numberOfComponents | int | Read | |
gamma | double | Read | Returns the gamma exponent. |
whitePoint | double[] | Read | Returns the white point [Xw, Yw, Zw]. |
Methods
| Signature | Description |
|---|---|
CalGrayColorSpace(params: COSDictionary) | Creates a CalGray color space from its parameter dictionary. |
toRGB(gray: double) → double[] | Converts a CalGray value (0..1) to sRGB components. |
getName() → String | |
getNumberOfComponents() → int | |
getGamma() → double | Returns the gamma exponent. |
getWhitePoint() → double[] | Returns the white point [Xw, Yw, Zw]. |
resolve(csObj: COSBase, resources: Resources, parser: PDFParser) → ColorSpaceBase | Resolves a color space from a PDF object. |