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
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Gets the name. |
numberOfComponents | int | Read | Gets the number of components. |
INSTANCE | DeviceRGB | Read | Singleton instance. |
Methods
| Signature | Description |
|---|---|
getName() → String | Returns the name. |
getNumberOfComponents() → int | Returns the number of components. |
toRGBInt(r: double, g: double, b: double) → int | Converts RGB components [0..1] to a packed ARGB int. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |