public class RadialShadingContext extends ShadingContext implements PaintContext
| Constructor and Description |
|---|
RadialShadingContext(PDShadingType3 shading,
ColorModel colorModel,
AffineTransform xform,
Matrix matrix)
Constructor creates an instance to be used for fill operations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
ColorModel |
getColorModel() |
float[] |
getCoords()
Returns the coords values.
|
float[] |
getDomain()
Returns the domain values.
|
boolean[] |
getExtend()
Returns the extend values.
|
PDFunction |
getFunction()
Returns the function.
|
Raster |
getRaster(int x,
int y,
int w,
int h) |
public RadialShadingContext(PDShadingType3 shading, ColorModel colorModel, AffineTransform xform, Matrix matrix) throws IOException
shading - the shading type to be usedcolorModel - the color model to be usedxform - transformation for user to device spacematrix - the pattern matrix concatenated with that of the parent content streamIOException - if there is an error getting the color space or doing color conversion.public void dispose()
dispose in interface PaintContextpublic ColorModel getColorModel()
getColorModel in interface PaintContextpublic Raster getRaster(int x, int y, int w, int h)
getRaster in interface PaintContextpublic float[] getCoords()
public float[] getDomain()
public boolean[] getExtend()
public PDFunction getFunction() throws IOException
IOException - if we were not able to create the function.Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.