|
http://www.eteks.com | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Image | +--java.awt.image.BufferedImage | +--com.eteks.java2d.PJABufferedImage
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.
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 |
Fields inherited from class java.awt.Image |
SCALE_AREA_AVERAGING, SCALE_DEFAULT, SCALE_FAST, SCALE_REPLICATE, SCALE_SMOOTH, UndefinedProperty |
Constructor Summary | |
PJABufferedImage(java.awt.image.ColorModel cm,
java.awt.image.WritableRaster raster,
boolean isRasterPremultiplied,
java.util.Hashtable properties)
Same constructor as BufferedImage . |
|
PJABufferedImage(int width,
int height,
int imageType)
Same constructor as BufferedImage . |
|
PJABufferedImage(int width,
int height,
int imageType,
java.awt.image.IndexColorModel cm)
Same constructor as BufferedImage . |
Method Summary | |
java.awt.Graphics2D |
createGraphics()
Returns an instance of Graphics2D to draw in the image.
|
java.awt.image.BufferedImage |
getSubimage(int x,
int y,
int w,
int h)
Overriden to return an instance of PJABufferedImage . |
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 |
Methods inherited from class java.awt.Image |
getScaledInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PJABufferedImage(int width, int height, int imageType)
BufferedImage
.public PJABufferedImage(int width, int height, int imageType, java.awt.image.IndexColorModel cm)
BufferedImage
.public PJABufferedImage(java.awt.image.ColorModel cm, java.awt.image.WritableRaster raster, boolean isRasterPremultiplied, java.util.Hashtable properties)
BufferedImage
.Method Detail |
public java.awt.Graphics2D createGraphics()
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.createGraphics
in class java.awt.image.BufferedImage
public java.awt.image.BufferedImage getSubimage(int x, int y, int w, int h)
PJABufferedImage
.getSubimage
in class java.awt.image.BufferedImage
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |