CalGrayColorSpace

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

NameTypeAccessDescription
nameStringReadGets the name.
numberOfComponentsintReadGets the number of components.
gammadoubleReadReturns the gamma exponent.
whitePointdouble[]ReadReturns the white point [Xw, Yw, Zw].

Methods

SignatureDescription
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()StringReturns the name.
getNumberOfComponents()intReturns the number of components.
toRGBInt(comps: double[])intCalGray -> sRGB via gamma + white point.
getGamma()doubleReturns the gamma exponent.
getWhitePoint()double[]Returns the white point [Xw, Yw, Zw].
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser)ColorSpaceBase

See Also

 English