public class AxialShadingContext extends ShadingContext implements PaintContext
Constructor and Description |
---|
AxialShadingContext(PDShadingType2 shading,
ColorModel colorModel,
AffineTransform xform,
Matrix matrix,
Rectangle deviceBounds)
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 AxialShadingContext(PDShadingType2 shading, ColorModel colorModel, AffineTransform xform, Matrix matrix, Rectangle deviceBounds) 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 streamdeviceBounds
- the bounds of the area to paint, in device unitsIOException
- if there is an error getting the color space or doing color conversion.public void dispose()
dispose
in interface PaintContext
public ColorModel getColorModel()
getColorModel
in interface PaintContext
public Raster getRaster(int x, int y, int w, int h)
getRaster
in interface PaintContext
public float[] getCoords()
public float[] getDomain()
public boolean[] getExtend()
public PDFunction getFunction() throws IOException
IOException
- if we were not able to create the function.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.