DeviceNColorSpace
Overview
DeviceNColorSpace is a class in Aspose.PDF FOSS for Java.
Inherits from: ColorSpaceBase.
DeviceN color space (ISO 32000-1:2008, §8.6.6.5).
This class provides 10 methods for working with DeviceNColorSpace objects in Java programs.
Available methods include: DeviceNColorSpace, fromArray, getAlternateCS, getColorantNames, getName, getNumberOfComponents, getTintTransform, resolve, tintsToAlternate, toRGBInt.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: alternateCS, colorantNames, name, numberOfComponents, tintTransform.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Gets the name. |
numberOfComponents | int | Read | Gets the number of components. |
colorantNames | String[] | Read | Returns the colorant names. |
alternateCS | ColorSpaceBase | Read | Returns the alternate (fallback) color space. |
tintTransform | PdfFunction | Read | Returns the tint transform function. |
Methods
| Signature | Description |
|---|---|
DeviceNColorSpace(colorantNames: String[], alternateCS: ColorSpaceBase, tintTransform: PdfFunction) | Creates a DeviceN color space. |
fromArray(arr: PdfArray, resources: Resources, parser: PDFParser) → DeviceNColorSpace | Parses a DeviceN color space from a PDF array. |
tintsToAlternate(tints: double[]) → double[] | Converts N tint values to alternate color space components. |
getName() → String | Returns the name. |
getNumberOfComponents() → int | Returns the number of components. |
toRGBInt(comps: double[]) → int | Tints → alternate components (via tint transform) → alternate’s RGB. |
getColorantNames() → String[] | Returns the colorant names. |
getAlternateCS() → ColorSpaceBase | Returns the alternate (fallback) color space. |
getTintTransform() → PdfFunction | Returns the tint transform function. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |