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).

Properties

NameTypeAccessDescription
shadingTypeintRead
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.
cOSDictionaryCOSDictionaryReadReturns the underlying dictionary.

Methods

SignatureDescription
RadialShading(dict: COSDictionary, parser: PDFParser)Creates a RadialShading from its dictionary.
getShadingType()int
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.
getCOSDictionary()COSDictionaryReturns the underlying dictionary.
parse(obj: COSBase, parser: PDFParser)ShadingFactory: parses a shading from a COS object.

See Also