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
| Name | Type | Access | Description |
|---|---|---|---|
shadingType | int | Read | Gets the shading type. |
x0 | double | Read | Returns the start circle X center. |
y0 | double | Read | Returns the start circle Y center. |
r0 | double | Read | Returns the start circle radius. |
x1 | double | Read | Returns the end circle X center. |
y1 | double | Read | Returns the end circle Y center. |
r1 | double | Read | Returns the end circle radius. |
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. |
Methods
| Signature | Description |
|---|---|
RadialShading(dict: PdfDictionary, parser: PDFParser) | Creates a RadialShading from its dictionary. |
getShadingType() → int | Returns the shading type. |
getColorAt(x: double, y: double) → double[] | |
getX0() → double | Returns the start circle X center. |
getY0() → double | Returns the start circle Y center. |
getR0() → double | Returns the start circle radius. |
getX1() → double | Returns the end circle X center. |
getY1() → double | Returns the end circle Y center. |
getR1() → double | Returns the end circle radius. |
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. |