class Type1ShadingContext extends ShadingContext implements java.awt.PaintContext
Modifier and Type | Field and Description |
---|---|
private float[] |
domain |
private static org.apache.commons.logging.Log |
LOG |
private java.awt.geom.AffineTransform |
rat |
private PDShadingType1 |
type1ShadingType |
Constructor and Description |
---|
Type1ShadingContext(PDShadingType1 shading,
java.awt.image.ColorModel colorModel,
java.awt.geom.AffineTransform xform,
Matrix matrix)
Constructor creates an instance to be used for fill operations.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.awt.image.ColorModel |
getColorModel() |
float[] |
getDomain() |
java.awt.image.Raster |
getRaster(int x,
int y,
int w,
int h) |
convertToRGB, getBackground, getRgbBackground, getShading, getShadingColorSpace
private static final org.apache.commons.logging.Log LOG
private PDShadingType1 type1ShadingType
private java.awt.geom.AffineTransform rat
private final float[] domain
Type1ShadingContext(PDShadingType1 shading, java.awt.image.ColorModel colorModel, java.awt.geom.AffineTransform xform, Matrix matrix) throws java.io.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 streamjava.io.IOException
public void dispose()
dispose
in interface java.awt.PaintContext
dispose
in class ShadingContext
public java.awt.image.ColorModel getColorModel()
getColorModel
in interface java.awt.PaintContext
getColorModel
in class ShadingContext
public java.awt.image.Raster getRaster(int x, int y, int w, int h)
getRaster
in interface java.awt.PaintContext
public float[] getDomain()