1 16 package swingwt.awt.image; 17 18 import swingwt.awt.*; 19 20 28 public class VolatileImage extends BufferedImage { 29 30 public static final int IMAGE_OK = 0; 31 public static final int IMAGE_RESTORED = 1; 32 public static final int IMAGE_INCOMPATIBLE = 2; 33 34 public VolatileImage(int width, int height, int imagetype) { super(width, height, imagetype); } 35 36 public BufferedImage getSnapshot() { return this; } 37 38 public int getWidth() { return super.getWidth(null); } 39 public int getHeight() { return super.getHeight(null); } 40 public void flush() { } 42 public int validate(GraphicsConfiguration gc) { return IMAGE_OK; } 43 public boolean contentsLost() { return false; } 44 public ImageCapabilities getCapabilities() { return new ImageCapabilities(true); } 45 46 } | Popular Tags |