http://www.eteks.com

com.eteks.java2d
Class PJABufferedImage

java.lang.Object
  extended byjava.awt.Image
      extended byjava.awt.image.BufferedImage
          extended bycom.eteks.java2d.PJABufferedImage
All Implemented Interfaces:
java.awt.image.RenderedImage, java.awt.image.WritableRenderedImage

public class PJABufferedImage
extends java.awt.image.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
Version:
2.1
Author:
Emmanuel Puybaret
See Also:
PJAGraphicsEnvironment

Field Summary
 
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

PJABufferedImage

public PJABufferedImage(int width,
                        int height,
                        int imageType)
Same constructor as BufferedImage.


PJABufferedImage

public PJABufferedImage(int width,
                        int height,
                        int imageType,
                        java.awt.image.IndexColorModel cm)
Same constructor as BufferedImage.


PJABufferedImage

public PJABufferedImage(java.awt.image.ColorModel cm,
                        java.awt.image.WritableRaster raster,
                        boolean isRasterPremultiplied,
                        java.util.Hashtable properties)
Same constructor as BufferedImage.

Method Detail

createGraphics

public java.awt.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.


getSubimage

public java.awt.image.BufferedImage getSubimage(int x,
                                                int y,
                                                int w,
                                                int h)
Overriden to return an instance of PJABufferedImage.


© 1997-2003 eTeks - All rights reserved