KickJava   Java API By Example, From Geeks To Geeks.

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


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: ImageConsumer.java,v $
11    Revision 1.1 2004/04/29 12:49:26 bobintetley
12    Additional JOptionePane constants, missing JTree methods and improved awt.Image support
13
14
15 */

16 package swingwt.awt.image;
17
18 import java.util.Hashtable JavaDoc;
19
20 public interface ImageConsumer {
21
22     int IMAGEERROR = 1;
23     int SINGLEFRAMEDONE = 2;
24     int STATICIMAGEDONE = 3;
25     int IMAGEABORTED = 4;
26     int RANDOMPIXELORDER = 1;
27     int TOPDOWNLEFTRIGHT = 2;
28     int COMPLETESCANLINES = 4;
29     int SINGLEPASS = 8;
30     int SINGLEFRAME = 16;
31     
32     void setDimensions(int width, int height);
33     void setProperties(Hashtable JavaDoc props);
34     void setColorModel(ColorModel model);
35     void setHints(int hintflags);
36     void setPixels(int x, int y, int w, int h, ColorModel model, byte pixels[], int off, int scansize);
37     void setPixels(int x, int y, int w, int h, ColorModel model, int pixels[], int off, int scansize);
38     void imageComplete(int status);
39     
40 }
41
Popular Tags