1 18 19 package swingwt.awt.image; 20 21 import swingwt.awt.*; 22 23 public class BufferedImage extends Image { 24 25 public static final int TYPE_CUSTOM = 0; 26 public static final int TYPE_INT_RGB = 1; 27 public static final int TYPE_INT_ARGB = 2; 28 public static final int TYPE_INT_ARGB_PRE = 3; 29 public static final int TYPE_INT_BGR = 4; 30 public static final int TYPE_3BYTE_BGR = 5; 31 public static final int TYPE_4BYTE_ABGR = 6; 32 public static final int TYPE_4BYTE_ABGR_PRE = 7; 33 public static final int TYPE_USHORT_565_RGB = 8; 34 public static final int TYPE_USHORT_555_RGB = 9; 35 public static final int TYPE_BYTE_GRAY = 10; 36 public static final int TYPE_USHORT_GRAY = 11; 37 public static final int TYPE_BYTE_BINARY = 12; 38 public static final int TYPE_BYTE_INDEXED = 13; 39 40 public BufferedImage(int width, int height, int imagetype) { 41 image = new org.eclipse.swt.graphics.Image(swingwtx.swing.SwingWTUtils.getDisplay(), width, height); 42 createGraphics(); 43 } 44 } 45 | Popular Tags |