LabColorSpace

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

NameTypeAccessDescription
nameStringReadGets the name.
numberOfComponentsintReadGets the number of components.
rangedouble[]ReadReturns the ab range [amin, amax, bmin, bmax].

Methods

SignatureDescription
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()StringReturns the name.
getNumberOfComponents()intReturns the number of components.
toRGBInt(comps: double[])intLab* → sRGB.
getRange()double[]Returns the ab range [amin, amax, bmin, bmax].
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser)ColorSpaceBase

See Also

 English