DeviceRGB

Overview

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

The DeviceRGB color space (ISO 32000-1:2008, §8.6.4.3).

This class provides 4 methods for working with DeviceRGB 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.
INSTANCEDeviceRGBReadSingleton instance.

Methods

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

See Also

 English