com.eteks.java2d
Class PJABufferedImage
java.lang.Object
|
+--java.awt.Image
|
+--java.awt.image.BufferedImage
|
+--com.eteks.java2d.PJABufferedImage
- All Implemented Interfaces:
- RenderedImage, WritableRenderedImage
- public class PJABufferedImage
- extends BufferedImage
Pure Java AWT BufferedImage implementation.
When drawing in images of class java.awt.image.BufferedImage
,
.pjaf font files are not used (other fonts already exist).
java.awt.image.BufferedImage and thus PJABufferedImage classes
require awt library loading.
Java2D can work with PJA only with JVM version >= 1.2.
- Since:
- PJA2.0
- Author:
- Emmanuel Puybaret
- See Also:
PJAGraphicsEnvironment
Fields inherited from class java.awt.image.BufferedImage |
TYPE_3BYTE_BGR, TYPE_4BYTE_ABGR, TYPE_4BYTE_ABGR_PRE, TYPE_BYTE_BINARY, TYPE_BYTE_GRAY, TYPE_BYTE_INDEXED, TYPE_CUSTOM, TYPE_INT_ARGB, TYPE_INT_ARGB_PRE, TYPE_INT_BGR, TYPE_INT_RGB, TYPE_USHORT_555_RGB, TYPE_USHORT_565_RGB, TYPE_USHORT_GRAY |
Methods inherited from class java.awt.image.BufferedImage |
addTileObserver, coerceData, copyData, flush, getAlphaRaster, getColorModel, getData, getData, getGraphics, getHeight, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getProperty, getPropertyNames, getRaster, getRGB, getRGB, getSampleModel, getSource, getSources, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getType, getWidth, getWidth, getWritableTile, getWritableTileIndices, hasTileWriters, isAlphaPremultiplied, isTileWritable, releaseWritableTile, removeTileObserver, setData, setRGB, setRGB, toString |
PJABufferedImage
public PJABufferedImage(int width,
int height,
int imageType)
- Same constructor as
BufferedImage
.
PJABufferedImage
public PJABufferedImage(int width,
int height,
int imageType,
IndexColorModel cm)
- Same constructor as
BufferedImage
.
PJABufferedImage
public PJABufferedImage(ColorModel cm,
WritableRaster raster,
boolean isRasterPremultiplied,
Hashtable properties)
- Same constructor as
BufferedImage
.
createGraphics
public Graphics2D createGraphics()
- Returns an instance of
Graphics2D
to draw in the image.
createGraphics ();
returns the Graphics
instance returned
by the method createGraphics ()
of PJAGraphicsEnvironment
class,
if super.createGraphics ()
failed because for exemple
it was impossible to change java.awt.graphicsenv
system property.
- Overrides:
createGraphics
in class BufferedImage
getSubimage
public BufferedImage getSubimage(int x,
int y,
int w,
int h)
- Overriden to return an instance of
PJABufferedImage
.
- Overrides:
getSubimage
in class BufferedImage