1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_awt_image_BufferedImage__
|
5 |
|
|
#define __java_awt_image_BufferedImage__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/awt/Image.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Graphics;
|
19 |
|
|
class Graphics2D;
|
20 |
|
|
class Point;
|
21 |
|
|
class Rectangle;
|
22 |
|
|
namespace image
|
23 |
|
|
{
|
24 |
|
|
class BufferedImage;
|
25 |
|
|
class ColorModel;
|
26 |
|
|
class ImageObserver;
|
27 |
|
|
class ImageProducer;
|
28 |
|
|
class IndexColorModel;
|
29 |
|
|
class Raster;
|
30 |
|
|
class SampleModel;
|
31 |
|
|
class TileObserver;
|
32 |
|
|
class WritableRaster;
|
33 |
|
|
}
|
34 |
|
|
}
|
35 |
|
|
}
|
36 |
|
|
}
|
37 |
|
|
|
38 |
|
|
class java::awt::image::BufferedImage : public ::java::awt::Image
|
39 |
|
|
{
|
40 |
|
|
|
41 |
|
|
public:
|
42 |
|
|
BufferedImage(jint, jint, jint);
|
43 |
|
|
BufferedImage(jint, jint, jint, ::java::awt::image::IndexColorModel *);
|
44 |
|
|
BufferedImage(::java::awt::image::ColorModel *, ::java::awt::image::WritableRaster *, jboolean, ::java::util::Hashtable *);
|
45 |
|
|
private:
|
46 |
|
|
void init(::java::awt::image::ColorModel *, ::java::awt::image::WritableRaster *, jboolean, ::java::util::Hashtable *, jint);
|
47 |
|
|
::java::awt::image::IndexColorModel * createDefaultIndexedColorModel(jboolean);
|
48 |
|
|
public:
|
49 |
|
|
virtual void coerceData(jboolean);
|
50 |
|
|
virtual ::java::awt::image::WritableRaster * copyData(::java::awt::image::WritableRaster *);
|
51 |
|
|
virtual ::java::awt::Graphics2D * createGraphics();
|
52 |
|
|
virtual void flush();
|
53 |
|
|
virtual ::java::awt::image::WritableRaster * getAlphaRaster();
|
54 |
|
|
virtual ::java::awt::image::ColorModel * getColorModel();
|
55 |
|
|
virtual ::java::awt::image::Raster * getData();
|
56 |
|
|
virtual ::java::awt::image::Raster * getData(::java::awt::Rectangle *);
|
57 |
|
|
virtual ::java::awt::Graphics * getGraphics();
|
58 |
|
|
virtual jint getHeight();
|
59 |
|
|
virtual jint getHeight(::java::awt::image::ImageObserver *);
|
60 |
|
|
virtual jint getMinTileX();
|
61 |
|
|
virtual jint getMinTileY();
|
62 |
|
|
virtual jint getMinX();
|
63 |
|
|
virtual jint getMinY();
|
64 |
|
|
virtual jint getNumXTiles();
|
65 |
|
|
virtual jint getNumYTiles();
|
66 |
|
|
virtual ::java::lang::Object * getProperty(::java::lang::String *);
|
67 |
|
|
virtual ::java::lang::Object * getProperty(::java::lang::String *, ::java::awt::image::ImageObserver *);
|
68 |
|
|
virtual JArray< ::java::lang::String * > * getPropertyNames();
|
69 |
|
|
virtual jint getRGB(jint, jint);
|
70 |
|
|
virtual JArray< jint > * getRGB(jint, jint, jint, jint, JArray< jint > *, jint, jint);
|
71 |
|
|
virtual ::java::awt::image::WritableRaster * getRaster();
|
72 |
|
|
virtual ::java::awt::image::SampleModel * getSampleModel();
|
73 |
|
|
virtual ::java::awt::image::ImageProducer * getSource();
|
74 |
|
|
virtual ::java::util::Vector * getSources();
|
75 |
|
|
virtual ::java::awt::image::BufferedImage * getSubimage(jint, jint, jint, jint);
|
76 |
|
|
virtual ::java::awt::image::Raster * getTile(jint, jint);
|
77 |
|
|
virtual jint getTileGridXOffset();
|
78 |
|
|
virtual jint getTileGridYOffset();
|
79 |
|
|
virtual jint getTileHeight();
|
80 |
|
|
virtual jint getTileWidth();
|
81 |
|
|
virtual jint getType();
|
82 |
|
|
virtual jint getWidth();
|
83 |
|
|
virtual jint getWidth(::java::awt::image::ImageObserver *);
|
84 |
|
|
virtual ::java::awt::image::WritableRaster * getWritableTile(jint, jint);
|
85 |
|
|
virtual JArray< ::java::awt::Point * > * getWritableTileIndices();
|
86 |
|
|
virtual jboolean hasTileWriters();
|
87 |
|
|
virtual jboolean isAlphaPremultiplied();
|
88 |
|
|
virtual jboolean isTileWritable(jint, jint);
|
89 |
|
|
virtual void releaseWritableTile(jint, jint);
|
90 |
|
|
virtual void setData(::java::awt::image::Raster *);
|
91 |
|
|
virtual void setRGB(jint, jint, jint);
|
92 |
|
|
virtual void setRGB(jint, jint, jint, jint, JArray< jint > *, jint, jint);
|
93 |
|
|
virtual ::java::lang::String * toString();
|
94 |
|
|
virtual void addTileObserver(::java::awt::image::TileObserver *);
|
95 |
|
|
virtual void removeTileObserver(::java::awt::image::TileObserver *);
|
96 |
|
|
virtual jint getTransparency();
|
97 |
|
|
static const jint TYPE_CUSTOM = 0;
|
98 |
|
|
static const jint TYPE_INT_RGB = 1;
|
99 |
|
|
static const jint TYPE_INT_ARGB = 2;
|
100 |
|
|
static const jint TYPE_INT_ARGB_PRE = 3;
|
101 |
|
|
static const jint TYPE_INT_BGR = 4;
|
102 |
|
|
static const jint TYPE_3BYTE_BGR = 5;
|
103 |
|
|
static const jint TYPE_4BYTE_ABGR = 6;
|
104 |
|
|
static const jint TYPE_4BYTE_ABGR_PRE = 7;
|
105 |
|
|
static const jint TYPE_USHORT_565_RGB = 8;
|
106 |
|
|
static const jint TYPE_USHORT_555_RGB = 9;
|
107 |
|
|
static const jint TYPE_BYTE_GRAY = 10;
|
108 |
|
|
static const jint TYPE_USHORT_GRAY = 11;
|
109 |
|
|
static const jint TYPE_BYTE_BINARY = 12;
|
110 |
|
|
static const jint TYPE_BYTE_INDEXED = 13;
|
111 |
|
|
public: // actually package-private
|
112 |
|
|
::java::util::Vector * __attribute__((aligned(__alignof__( ::java::awt::Image)))) tileObservers;
|
113 |
|
|
::java::awt::image::WritableRaster * raster;
|
114 |
|
|
::java::awt::image::ColorModel * colorModel;
|
115 |
|
|
::java::util::Hashtable * properties;
|
116 |
|
|
jboolean isPremultiplied;
|
117 |
|
|
jint type;
|
118 |
|
|
private:
|
119 |
|
|
static JArray< ::java::awt::Point * > * tileIndices;
|
120 |
|
|
public:
|
121 |
|
|
static ::java::lang::Class class$;
|
122 |
|
|
};
|
123 |
|
|
|
124 |
|
|
#endif // __java_awt_image_BufferedImage__
|