AxialShading
Overview
AxialShading is a class in Aspose.Pdf FOSS for Java.
Inherits from: Shading.
Axial shading / linear gradient — ShadingType 2 (ISO 32000-1:2008, §8.7.4.5.2).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
shadingType | int | Read | |
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. |
cOSDictionary | COSDictionary | Read | Returns the underlying dictionary. |
Methods
| Signature | Description |
|---|---|
AxialShading(dict: COSDictionary, parser: PDFParser) | Creates an AxialShading from its dictionary. |
getShadingType() → int | |
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. |
getCOSDictionary() → COSDictionary | Returns the underlying dictionary. |
parse(obj: COSBase, parser: PDFParser) → Shading | Factory: parses a shading from a COS object. |