ColorSpaceBase
Overview
ColorSpaceBase is a class in Aspose.PDF FOSS for Java.
Abstract base for all PDF color spaces (ISO 32000-1:2008, §8.6).
This class provides 4 methods for working with ColorSpaceBase 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: name, numberOfComponents.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Returns the color space name (e.g., “DeviceRGB”, “ICCBased”, “Indexed”). |
numberOfComponents | int | Read | Returns the number of color components in this color space. |
Methods
| Signature | Description |
|---|---|
getName() → String | Returns the color space name (e.g., “DeviceRGB”, “ICCBased”, “Indexed”). |
getNumberOfComponents() → int | Returns the number of color components in this color space. |
toRGBInt(comps: double[]) → int | Converts component values in THIS color space (each typically 0..1) |
| to a packed ARGB int (alpha=0xFF). | |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |