Class PatternType1.Type1PaintContext
java.lang.Object
org.openpdf.renderer.pattern.PatternType1.Type1PaintContext
- All Implemented Interfaces:
PaintContext
- Enclosing class:
PatternType1
A simple paint context that uses an existing raster in device
space to generate pixels
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Rectangle2Dthe anchor boxprivate ColorModelthe color modelprivate Rasterthe image data, as a raster in device coordinatesprivate floatthe x offsetprivate floatthe y offset -
Constructor Summary
ConstructorsConstructorDescriptionType1PaintContext(ColorModel colorModel, Rectangle2D bbox, float xstep, float ystep, Raster data) Create a paint context -
Method Summary
-
Field Details
-
colorModel
the color model -
bbox
the anchor box -
xstep
private float xstepthe x offset -
ystep
private float ystepthe y offset -
data
the image data, as a raster in device coordinates
-
-
Constructor Details
-
Type1PaintContext
Type1PaintContext(ColorModel colorModel, Rectangle2D bbox, float xstep, float ystep, Raster data) Create a paint context
-
-
Method Details
-
dispose
public void dispose()- Specified by:
disposein interfacePaintContext
-
getColorModel
- Specified by:
getColorModelin interfacePaintContext
-
getRaster
- Specified by:
getRasterin interfacePaintContext
-