DeviceGray

Overview

DeviceGray is a class in Aspose.PDF FOSS for Java. Inherits from: ColorSpaceBase.

The DeviceGray color space (ISO 32000-1:2008, §8.6.4.2).

This class provides 4 methods for working with DeviceGray objects in Java programs. Available methods include: getName, getNumberOfComponents, resolve, toRGBInt. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: INSTANCE, name, numberOfComponents.

Properties

NameTypeAccessDescription
nameStringReadGets the name.
numberOfComponentsintReadGets the number of components.
INSTANCEDeviceGrayReadSingleton instance.

Methods

SignatureDescription
getName()StringReturns the name.
getNumberOfComponents()intReturns the number of components.
toRGBInt(gray: double)intConverts a gray level [0..1] to a packed ARGB int.
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser)ColorSpaceBase

See Also

 English