RadialShading

RadialShading

Overview

RadialShading is a class in Aspose.PDF FOSS for Java. Inherits from: Shading.

Radial shading / radial gradient — ShadingType 3 (ISO 32000-1:2008, §8.7.4.5.3).

This class provides 15 methods for working with RadialShading objects in Java programs. Available methods include: RadialShading, getBBox, getBackground, getColorAt, getColorSpace, getPdfDictionary, getR0, getR1, getShadingType, getX0, getX1, getY0, and 3 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: antiAlias, bBox, background, colorSpace, pdfDictionary, r0, and 6 more.

Properties

NameTypeAccessDescription
shadingTypeintReadGets the shading type.
x0doubleReadReturns the start circle X center.
y0doubleReadReturns the start circle Y center.
r0doubleReadReturns the start circle radius.
x1doubleReadReturns the end circle X center.
y1doubleReadReturns the end circle Y center.
r1doubleReadReturns the end circle radius.
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.

Methods

SignatureDescription
RadialShading(dict: PdfDictionary, parser: PDFParser)Creates a RadialShading from its dictionary.
getShadingType()intReturns the shading type.
getColorAt(x: double, y: double)double[]
getX0()doubleReturns the start circle X center.
getY0()doubleReturns the start circle Y center.
getR0()doubleReturns the start circle radius.
getX1()doubleReturns the end circle X center.
getY1()doubleReturns the end circle Y center.
getR1()doubleReturns the end circle radius.
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.

See Also

 English