2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_awt_image_ColorModel__
5 #define __java_awt_image_ColorModel__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
33 class java::awt::image::ColorModel
: public ::java::lang::Object
36 public: // actually package-private
37 static JArray
< jint
> * nArray(jint
, jint
);
38 static JArray
< jbyte
> * nArray(jbyte
, jint
);
41 public: // actually protected
42 ColorModel(jint
, JArray
< jint
> *, ::java::awt::color::ColorSpace
*, jboolean
, jboolean
, jint
, jint
);
44 virtual void finalize();
45 static ::java::awt::image::ColorModel
* getRGBdefault();
46 virtual jboolean
hasAlpha();
47 virtual jboolean
isAlphaPremultiplied();
48 virtual jint
getPixelSize();
49 virtual jint
getComponentSize(jint
);
50 virtual JArray
< jint
> * getComponentSize();
51 virtual jint
getTransparency();
52 virtual jint
getNumComponents();
53 virtual jint
getNumColorComponents();
54 virtual jint
getRed(jint
) = 0;
55 virtual jint
getGreen(jint
) = 0;
56 virtual jint
getBlue(jint
) = 0;
57 virtual jint
getAlpha(jint
) = 0;
58 virtual jint
getRGB(jint
);
59 public: // actually package-private
60 virtual jint
getPixelFromArray(::java::lang::Object
*);
62 virtual jint
getRed(::java::lang::Object
*);
63 virtual jint
getGreen(::java::lang::Object
*);
64 virtual jint
getBlue(::java::lang::Object
*);
65 virtual jint
getAlpha(::java::lang::Object
*);
66 virtual jint
getRGB(::java::lang::Object
*);
67 virtual ::java::lang::Object
* getDataElements(jint
, ::java::lang::Object
*);
68 virtual JArray
< jint
> * getComponents(jint
, JArray
< jint
> *, jint
);
69 virtual JArray
< jint
> * getComponents(::java::lang::Object
*, JArray
< jint
> *, jint
);
70 virtual JArray
< jint
> * getUnnormalizedComponents(JArray
< jfloat
> *, jint
, JArray
< jint
> *, jint
);
71 virtual JArray
< jfloat
> * getNormalizedComponents(JArray
< jint
> *, jint
, JArray
< jfloat
> *, jint
);
72 virtual JArray
< jfloat
> * getNormalizedComponents(::java::lang::Object
*, JArray
< jfloat
> *, jint
);
73 virtual jint
getDataElement(JArray
< jint
> *, jint
);
74 virtual jint
getDataElement(JArray
< jfloat
> *, jint
);
75 virtual ::java::lang::Object
* getDataElements(JArray
< jint
> *, jint
, ::java::lang::Object
*);
76 virtual ::java::lang::Object
* getDataElements(JArray
< jfloat
> *, jint
, ::java::lang::Object
*);
77 virtual jboolean
equals(::java::lang::Object
*);
78 virtual ::java::awt::color::ColorSpace
* getColorSpace();
79 virtual ::java::awt::image::ColorModel
* coerceData(::java::awt::image::WritableRaster
*, jboolean
);
80 public: // actually protected
81 virtual void coerceDataWorker(::java::awt::image::WritableRaster
*, jboolean
);
83 virtual jboolean
isCompatibleRaster(::java::awt::image::Raster
*);
84 virtual ::java::awt::image::WritableRaster
* createCompatibleWritableRaster(jint
, jint
);
85 virtual ::java::awt::image::SampleModel
* createCompatibleSampleModel(jint
, jint
);
86 virtual jboolean
isCompatibleSampleModel(::java::awt::image::SampleModel
*);
87 virtual jint
getTransferType();
88 virtual ::java::awt::image::WritableRaster
* getAlphaRaster(::java::awt::image::WritableRaster
*);
89 public: // actually package-private
90 virtual ::java::lang::String
* stringParam();
92 virtual ::java::lang::String
* toString();
93 public: // actually protected
94 jint
__attribute__((aligned(__alignof__( ::java::lang::Object
)))) pixel_bits
;
96 public: // actually package-private
97 JArray
< jint
> * bits
;
98 ::java::awt::color::ColorSpace
* cspace
;
101 jboolean isAlphaPremultiplied__
;
103 static ::java::awt::image::ColorModel
* S_RGB_MODEL
;
105 static ::java::lang::Class
class$
;
108 #endif // __java_awt_image_ColorModel__