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

NameTypeAccessDescription
shadingTypeintReadGets the shading type.
x0doubleReadReturns the start point X coordinate.
y0doubleReadReturns the start point Y coordinate.
x1doubleReadReturns the end point X coordinate.
y1doubleReadReturns the end point Y coordinate.
t0doubleReadReturns the start of the parametric domain.
t1doubleReadReturns the end of the parametric domain.
extendStartbooleanReadReturns whether the gradient extends before the start point.
extendEndbooleanReadReturns whether the gradient extends past the end point.
colorSpaceColorSpaceBaseReadReturns the color space.
backgrounddouble[]ReadReturns the optional background color, or {@code null}.
bBoxRectangleReadReturns the optional bounding box, or {@code null}.
antiAliasbooleanReadReturns whether anti-aliasing is requested.
pdfDictionaryPdfDictionaryReadReturns the underlying dictionary.

méthodes

SignatureDescription
AxialShading(dict: PdfDictionary, parser: PDFParser)Creates an AxialShading from its dictionary.
getShadingType()intReturns the shading type.
getColorAt(x: double, y: double)double[]
getX0()doubleReturns the start point X coordinate.
getY0()doubleReturns the start point Y coordinate.
getX1()doubleReturns the end point X coordinate.
getY1()doubleReturns the end point Y coordinate.
getT0()doubleReturns the start of the parametric domain.
getT1()doubleReturns the end of the parametric domain.
isExtendStart()booleanReturns whether the gradient extends before the start point.
isExtendEnd()booleanReturns whether the gradient extends past the end point.
getColorSpace()ColorSpaceBaseReturns the color space.
getBackground()double[]Returns the optional background color, or {@code null}.
getBBox()RectangleReturns the optional bounding box, or {@code null}.
isAntiAlias()booleanReturns whether anti-aliasing is requested.
getPdfDictionary()PdfDictionaryReturns the underlying dictionary.
parse(obj: PdfBase, parser: PDFParser)ShadingFactory: parses a shading from a PDF object.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français