public class RadialShadingContext extends ShadingContext implements PaintContext
bboxRect, colorSpace, deviceBounds, maxBBoxX, maxBBoxY, minBBoxX, minBBoxY, outputColorModel, shading, shadingColorSpace, shadingTinttransform
Constructor and Description |
---|
RadialShadingContext(PDShadingType3 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 RadialShadingContext(PDShadingType3 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 matrixdBounds
- device boundspageHeight
- height of the current pageIOException
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.