KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > image > BufferedImage


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: BufferedImage.java,v $
11    Revision 1.5 2004/01/15 15:20:29 bobintetley
12    Java2D work
13
14    Revision 1.4 2003/12/14 09:13:38 bobintetley
15    Added CVS log to source headers
16
17 */

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