summaryrefslogtreecommitdiff
path: root/libjava/java/awt/image/BufferedImage.h
blob: 9c54907a7b5188fdfc0df52391426174f299466f (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_awt_image_BufferedImage__
#define __java_awt_image_BufferedImage__

#pragma interface

#include <java/awt/Image.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Graphics;
        class Graphics2D;
        class Point;
        class Rectangle;
      namespace image
      {
          class BufferedImage;
          class ColorModel;
          class ImageObserver;
          class ImageProducer;
          class IndexColorModel;
          class Raster;
          class SampleModel;
          class TileObserver;
          class WritableRaster;
      }
    }
  }
}

class java::awt::image::BufferedImage : public ::java::awt::Image
{

public:
  BufferedImage(jint, jint, jint);
  BufferedImage(jint, jint, jint, ::java::awt::image::IndexColorModel *);
  BufferedImage(::java::awt::image::ColorModel *, ::java::awt::image::WritableRaster *, jboolean, ::java::util::Hashtable *);
private:
  void init(::java::awt::image::ColorModel *, ::java::awt::image::WritableRaster *, jboolean, ::java::util::Hashtable *, jint);
  ::java::awt::image::IndexColorModel * createDefaultIndexedColorModel(jboolean);
public:
  virtual void coerceData(jboolean);
  virtual ::java::awt::image::WritableRaster * copyData(::java::awt::image::WritableRaster *);
  virtual ::java::awt::Graphics2D * createGraphics();
  virtual void flush();
  virtual ::java::awt::image::WritableRaster * getAlphaRaster();
  virtual ::java::awt::image::ColorModel * getColorModel();
  virtual ::java::awt::image::Raster * getData();
  virtual ::java::awt::image::Raster * getData(::java::awt::Rectangle *);
  virtual ::java::awt::Graphics * getGraphics();
  virtual jint getHeight();
  virtual jint getHeight(::java::awt::image::ImageObserver *);
  virtual jint getMinTileX();
  virtual jint getMinTileY();
  virtual jint getMinX();
  virtual jint getMinY();
  virtual jint getNumXTiles();
  virtual jint getNumYTiles();
  virtual ::java::lang::Object * getProperty(::java::lang::String *);
  virtual ::java::lang::Object * getProperty(::java::lang::String *, ::java::awt::image::ImageObserver *);
  virtual JArray< ::java::lang::String * > * getPropertyNames();
  virtual jint getRGB(jint, jint);
  virtual JArray< jint > * getRGB(jint, jint, jint, jint, JArray< jint > *, jint, jint);
  virtual ::java::awt::image::WritableRaster * getRaster();
  virtual ::java::awt::image::SampleModel * getSampleModel();
  virtual ::java::awt::image::ImageProducer * getSource();
  virtual ::java::util::Vector * getSources();
  virtual ::java::awt::image::BufferedImage * getSubimage(jint, jint, jint, jint);
  virtual ::java::awt::image::Raster * getTile(jint, jint);
  virtual jint getTileGridXOffset();
  virtual jint getTileGridYOffset();
  virtual jint getTileHeight();
  virtual jint getTileWidth();
  virtual jint getType();
  virtual jint getWidth();
  virtual jint getWidth(::java::awt::image::ImageObserver *);
  virtual ::java::awt::image::WritableRaster * getWritableTile(jint, jint);
  virtual JArray< ::java::awt::Point * > * getWritableTileIndices();
  virtual jboolean hasTileWriters();
  virtual jboolean isAlphaPremultiplied();
  virtual jboolean isTileWritable(jint, jint);
  virtual void releaseWritableTile(jint, jint);
  virtual void setData(::java::awt::image::Raster *);
  virtual void setRGB(jint, jint, jint);
  virtual void setRGB(jint, jint, jint, jint, JArray< jint > *, jint, jint);
  virtual ::java::lang::String * toString();
  virtual void addTileObserver(::java::awt::image::TileObserver *);
  virtual void removeTileObserver(::java::awt::image::TileObserver *);
  virtual jint getTransparency();
  static const jint TYPE_CUSTOM = 0;
  static const jint TYPE_INT_RGB = 1;
  static const jint TYPE_INT_ARGB = 2;
  static const jint TYPE_INT_ARGB_PRE = 3;
  static const jint TYPE_INT_BGR = 4;
  static const jint TYPE_3BYTE_BGR = 5;
  static const jint TYPE_4BYTE_ABGR = 6;
  static const jint TYPE_4BYTE_ABGR_PRE = 7;
  static const jint TYPE_USHORT_565_RGB = 8;
  static const jint TYPE_USHORT_555_RGB = 9;
  static const jint TYPE_BYTE_GRAY = 10;
  static const jint TYPE_USHORT_GRAY = 11;
  static const jint TYPE_BYTE_BINARY = 12;
  static const jint TYPE_BYTE_INDEXED = 13;
public: // actually package-private
  ::java::util::Vector * __attribute__((aligned(__alignof__( ::java::awt::Image)))) tileObservers;
  ::java::awt::image::WritableRaster * raster;
  ::java::awt::image::ColorModel * colorModel;
  ::java::util::Hashtable * properties;
  jboolean isPremultiplied;
  jint type;
private:
  static JArray< ::java::awt::Point * > * tileIndices;
public:
  static ::java::lang::Class class$;
};

#endif // __java_awt_image_BufferedImage__