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).

Properties

NameTypeAccessDescription
nameStringRead
numberOfComponentsintRead
gammadoubleReadReturns the gamma exponent.
whitePointdouble[]ReadReturns the white point [Xw, Yw, Zw].

Methods

SignatureDescription
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()doubleReturns the gamma exponent.
getWhitePoint()double[]Returns the white point [Xw, Yw, Zw].
resolve(csObj: COSBase, resources: Resources, parser: PDFParser)ColorSpaceBaseResolves a color space from a PDF object.

See Also