Shading
Vue de l’ensemble
‘Shading’ est une classe dans Aspose.PDF FOSS pour Java.
Base abstraite pour les dictionnaires de nuage (ISO 32000-1:2008, §8.7.4.3).
Cette classe fournit 8 méthodes pour travailler avec des objets Shading dans les programmes Java. Les méthodologies disponibles comprennent: ‘getBBox’, ‘getBackground’, getColorAt', ‘getPdfDictionary’, 'geShadingType', ’isAntiAlias, ‘parse’. Tous les membres publics sont accessibles à toute application Java après avoir installé l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘antiAlies’, ‚bBox‘, background‘ , 'colorSpace , pdfDictory et ‘shadingtype`.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
shadingType | int | Read | Returns the shading type (1–7). |
colorSpace | ColorSpaceBase | Read | Returns the color space. |
background | double[] | Read | Returns the optional background color, or {@code null}. |
bBox | Rectangle | Read | Returns the optional bounding box, or {@code null}. |
antiAlias | boolean | Read | Returns whether anti-aliasing is requested. |
pdfDictionary | PdfDictionary | Read | Returns the underlying dictionary. |
méthodes
| Signature | Description |
|---|---|
getShadingType() → int | Returns the shading type (1–7). |
getColorAt(x: double, y: double) → double[] | Evaluates the shading color at a point in shading coordinate space. |
getColorSpace() → ColorSpaceBase | Returns the color space. |
getBackground() → double[] | Returns the optional background color, or {@code null}. |
getBBox() → Rectangle | Returns the optional bounding box, or {@code null}. |
isAntiAlias() → boolean | Returns whether anti-aliasing is requested. |
getPdfDictionary() → PdfDictionary | Returns the underlying dictionary. |
parse(obj: PdfBase, parser: PDFParser) → Shading | Factory: parses a shading from a PDF object. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise