public class AxialShadingContext extends ShadingContext implements PaintContext
bboxRect, colorSpace, deviceBounds, maxBBoxX, maxBBoxY, minBBoxX, minBBoxY, outputColorModel, shading, shadingColorSpace, shadingTinttransform
Constructor and Description |
---|
AxialShadingContext(PDShadingType2 shading,
ColorModel colorModel,
AffineTransform xform,
Matrix ctm,
int pageHeight,
Rectangle dBounds)
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) |
convertToRGB, getShadingTintTransform
public AxialShadingContext(PDShadingType2 shading, ColorModel colorModel, AffineTransform xform, Matrix ctm, int pageHeight, Rectangle dBounds) throws IOException
shading
- the shading type to be usedcolorModel
- the color model to be usedxform
- transformation for user to device spacectm
- the transformation matrixpageHeight
- height of the current pagedBounds
- device boundsIOException
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 something goes wrongCopyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.