LabColorSpace
Overview
LabColorSpace is a class in Aspose.PDF FOSS for Java.
Inherits from: ColorSpaceBase.
Lab color space (ISO 32000-1:2008, §8.6.5.4).
This class provides 7 methods for working with LabColorSpace objects in Java programs.
Available methods include: LabColorSpace, getName, getNumberOfComponents, getRange, resolve, toRGB, toRGBInt.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: name, numberOfComponents, range.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Gets the name. |
numberOfComponents | int | Read | Gets the number of components. |
range | double[] | Read | Returns the ab range [amin, amax, bmin, bmax]. |
Methods
| Signature | Description |
|---|---|
LabColorSpace(params: PdfDictionary) | Creates a Lab color space from its parameter dictionary. |
toRGB(lStar: double, aStar: double, bStar: double) → double[] | Converts Lab values to sRGB components. |
getName() → String | Returns the name. |
getNumberOfComponents() → int | Returns the number of components. |
toRGBInt(comps: double[]) → int | Lab* → sRGB. |
getRange() → double[] | Returns the ab range [amin, amax, bmin, bmax]. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |