FileDocCategorySizeDatePackage
BufferedImageGraphics2D.javaAPI DocAndroid 1.5 API2534Wed May 06 22:41:54 BST 2009org.apache.harmony.awt.gl.image

BufferedImageGraphics2D

public class BufferedImageGraphics2D extends org.apache.harmony.awt.gl.CommonGraphics2D
BufferedImageGraphics2D is implementation of CommonGraphics2D for drawing on buffered images.

Fields Summary
private BufferedImage
bi
private Rectangle
bounds
Constructors Summary
public BufferedImageGraphics2D(BufferedImage bi)


       
        super();
        this.bi = bi;
        this.bounds = new Rectangle(0, 0, bi.getWidth(), bi.getHeight());
        clip(bounds);
        dstSurf = Surface.getImageSurface(bi);
        if(dstSurf.isNativeDrawable()){
            blitter = NativeImageBlitter.getInstance();
        }else{
            blitter = JavaBlitter.getInstance();
        }
    
Methods Summary
public voidcopyArea(int x, int y, int width, int height, int dx, int dy)

    
public java.awt.Graphicscreate()

        BufferedImageGraphics2D res = new BufferedImageGraphics2D(bi);
        copyInternalFields(res);
        return res;
    
public java.awt.image.ColorModelgetColorModel()

        return bi.getColorModel();
    
public java.awt.GraphicsConfigurationgetDeviceConfiguration()

        return null;
    
public java.awt.image.WritableRastergetWritableRaster()

        return bi.getRaster();