aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/image/ImageConsumer.java
blob: 37214d7b7693cd1b1e4abe5cbfe3e77f63d25659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Copyright (C) 2000  Free Software Foundation

   This file is part of libgcj.

This software is copyrighted work licensed under the terms of the
Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
details.  */

package java.awt.image;
import java.util.Hashtable;
import java.awt.ColorModel;

public interface ImageConsumer
{

  public static final int RANDOMPIXELORDER  = 1 << 0,
			  TOPDOWNLEFTRIGHT  = 1 << 1,
			  COMPLETESCANLINES = 1 << 2,
			  SINGLEPASS        = 1 << 3,
			  SINGLEFRAME       = 1 << 4;
			  
  public static final int IMAGEERROR        = 1,
			  SINGLEFRAMEDONE   = 2,
			  STATICIMAGEDONE   = 3,
			  IMAGEABORTED      = 4;

  public void setDimensions(int width, int height);
  public void setProperties(Hashtable props);
  public void setColorModel(ColorModel model);
  public void setHints(int hintflags);
  public void setPixels(int x, int y, int w, int h, ColorModel model,
                	byte[] pixels, int off, int scansize);
  public void setPixels(int x, int y, int w, int h, ColorModel model,
                	int[] pixels, int off, int scansize);
  public void imageComplete(int status);
}