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, getShadingTintTransformpublic 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 boundsIOExceptionpublic 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 something goes wrongCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.