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).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | |
numberOfComponents | int | Read | |
INSTANCE | DeviceGray | Read | Singleton instance. |
Methods
| Signature | Description |
|---|---|
getName() → String | |
getNumberOfComponents() → int | |
toRGBInt(gray: double) → int | Converts a gray level [0..1] to a packed ARGB int. |
resolve(csObj: COSBase, resources: Resources, parser: PDFParser) → ColorSpaceBase | Resolves a color space from a PDF object. |