AxialShading
Vue de l’ensemble
‘AxialShading’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: `Shader’.
Shading axial / gradient linéaire — ShatingType 2 (ISO 32000-1:2008, §8.7.4.5.2).
Cette classe fournit 17 méthodes pour travailler avec des objets AxialShading dans les programmes Java. Les méthodologies disponibles comprennent: AxielShader, getBBox , getaBackground ; getColorAt; ‘getColoreSpace : ’getPdfDictionary ، GetaShadenType et etT0 . , ‘getT1., 'geteX0‘, 'etX1' et 5 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation de l'Aspoe.PDF FOSS pour le package Java . Propriétés : antiAliassbBoxt,background ́, ‘‘colorSpACE sextendEndStart` 8 et plus.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
shadingType | int | Read | Gets the shading type. |
x0 | double | Read | Returns the start point X coordinate. |
y0 | double | Read | Returns the start point Y coordinate. |
x1 | double | Read | Returns the end point X coordinate. |
y1 | double | Read | Returns the end point Y coordinate. |
t0 | double | Read | Returns the start of the parametric domain. |
t1 | double | Read | Returns the end of the parametric domain. |
extendStart | boolean | Read | Returns whether the gradient extends before the start point. |
extendEnd | boolean | Read | Returns whether the gradient extends past the end point. |
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 |
|---|---|
AxialShading(dict: PdfDictionary, parser: PDFParser) | Creates an AxialShading from its dictionary. |
getShadingType() → int | Returns the shading type. |
getColorAt(x: double, y: double) → double[] | |
getX0() → double | Returns the start point X coordinate. |
getY0() → double | Returns the start point Y coordinate. |
getX1() → double | Returns the end point X coordinate. |
getY1() → double | Returns the end point Y coordinate. |
getT0() → double | Returns the start of the parametric domain. |
getT1() → double | Returns the end of the parametric domain. |
isExtendStart() → boolean | Returns whether the gradient extends before the start point. |
isExtendEnd() → boolean | Returns whether the gradient extends past the end point. |
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