CalRGBColorSpace

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

NameTypeAccessDescription
nameStringReadGets the name.
numberOfComponentsintReadGets the number of components.

Methods

SignatureDescription
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() → StringReturns the name.
getNumberOfComponents() → intReturns the number of components.
toRGBInt(comps: double[]) → intCalRGB -> sRGB via gamma + XYZ matrix.
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase

See Also

 English