Les couleurs de l'espace
Vue de l’ensemble
‘DeviceNColorSpace’ est une classe dans Aspose.PDF FOSS pour Java.
L’espace de couleur DeviceN (ISO 32000-1:2008, §8.6.5.)
Cette classe fournit 10 méthodes pour travailler avec des objets DeviceNColorSpace dans les programmes Java. Les méthodologies disponibles comprennent: DeviceNcalorspace, fromArray , getAlternateCS ; getColorantNames; ‘getName:netNumberOfComponents . , 'netTintTransform. , ‘resolve: 'tintsToAlternaate., ’toRGBInt.. Tous les membres publics sont accessibles à toute application Java après l'installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : 'alternate CS et ‘colorantnames’, ’name` en nombre d’options, ’transform’.
Propriétés
| 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. |
méthodes
| 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 |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise