Module org.sejda.sambox
Class RadialShadingContext
java.lang.Object
org.sejda.sambox.pdmodel.graphics.shading.ShadingContext
org.sejda.sambox.pdmodel.graphics.shading.RadialShadingContext
- All Implemented Interfaces:
PaintContext
AWT PaintContext for radial shading.
Performance improvement done as part of GSoC2014, Tilman Hausherr is the mentor.
- Author:
- Shaola Ren
-
Constructor Summary
ConstructorsConstructorDescriptionRadialShadingContext(PDShadingType3 shading, ColorModel colorModel, AffineTransform xform, Matrix matrix, Rectangle deviceBounds) Constructor creates an instance to be used for fill operations. -
Method Summary
-
Constructor Details
-
RadialShadingContext
public RadialShadingContext(PDShadingType3 shading, ColorModel colorModel, AffineTransform xform, Matrix matrix, Rectangle deviceBounds) throws IOException Constructor creates an instance to be used for fill operations.- Parameters:
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 units- Throws:
IOException- if there is an error getting the color space or doing color conversion.
-
-
Method Details
-
dispose
public void dispose()- Specified by:
disposein interfacePaintContext
-
getColorModel
- Specified by:
getColorModelin interfacePaintContext
-
getRaster
- Specified by:
getRasterin interfacePaintContext
-
getCoords
public float[] getCoords()Returns the coords values. -
getDomain
public float[] getDomain()Returns the domain values. -
getExtend
public boolean[] getExtend()Returns the extend values. -
getFunction
Returns the function.- Throws:
IOException- if we were not able to create the function.
-