//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <qstrlist.h>
#include <qstring.h>
#include <qwmatrix.h>
#include <qstringlist.h>
#include <qpoint.h>
#include <qsize.h>
#include <qwindowdefs.h>
#include <qimage.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QImage.h>

class QImageJBridge : public QImage
{
public:
	QImageJBridge() : QImage() {};
	QImageJBridge(int arg1,int arg2,int arg3,int arg4,QImage::Endian arg5) : QImage(arg1,arg2,arg3,arg4,arg5) {};
	QImageJBridge(int arg1,int arg2,int arg3,int arg4) : QImage(arg1,arg2,arg3,arg4) {};
	QImageJBridge(int arg1,int arg2,int arg3) : QImage(arg1,arg2,arg3) {};
	QImageJBridge(const QSize& arg1,int arg2,int arg3,QImage::Endian arg4) : QImage(arg1,arg2,arg3,arg4) {};
	QImageJBridge(const QSize& arg1,int arg2,int arg3) : QImage(arg1,arg2,arg3) {};
	QImageJBridge(const QSize& arg1,int arg2) : QImage(arg1,arg2) {};
	QImageJBridge(const QString& arg1,const char* arg2) : QImage(arg1,arg2) {};
	QImageJBridge(const QString& arg1) : QImage(arg1) {};
	QImageJBridge(const QByteArray& arg1) : QImage(arg1) {};
	QImageJBridge(uchar* arg1,int arg2,int arg3,int arg4,QRgb* arg5,int arg6,QImage::Endian arg7) : QImage(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
	QImageJBridge(const QImage& arg1) : QImage(arg1) {};
	~QImageJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_allGray(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->allGray();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_bitOrder(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->bitOrder();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_bytesPerLine(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->bytesPerLine();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_color(JNIEnv* env, jobject obj, jint i)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->color((int) i);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertBitOrder(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->convertBitOrder((QImage::Endian) arg1)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertDepthWithPalette__I_3II(JNIEnv* env, jobject obj, jint arg1, jintArray p, jint pc)
{
	int* _int_p = QtSupport::toIntPtr(env, p);
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->convertDepthWithPalette((int) arg1,  (QRgb*) _int_p, (int) pc)), "org.kde.qt.QImage", TRUE);
	env->SetIntArrayRegion(p, 0, 1, (jint *) _int_p);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertDepthWithPalette__I_3III(JNIEnv* env, jobject obj, jint arg1, jintArray p, jint pc, jint cf)
{
	int* _int_p = QtSupport::toIntPtr(env, p);
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->convertDepthWithPalette((int) arg1,  (QRgb*) _int_p, (int) pc, (int) cf)), "org.kde.qt.QImage", TRUE);
	env->SetIntArrayRegion(p, 0, 1, (jint *) _int_p);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertDepth__I(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->convertDepth((int) arg1)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_convertDepth__II(JNIEnv* env, jobject obj, jint arg1, jint conversion_flags)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->convertDepth((int) arg1, (int) conversion_flags)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_copy__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->copy()), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_copy__IIII(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->copy((int) x, (int) y, (int) w, (int) h)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_copy__IIIII(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h, jint conversion_flags)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->copy((int) x, (int) y, (int) w, (int) h, (int) conversion_flags)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_copy__Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->copy((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1))), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_createAlphaMask__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->createAlphaMask()), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_createAlphaMask__I(JNIEnv* env, jobject obj, jint conversion_flags)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->createAlphaMask((int) conversion_flags)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_createHeuristicMask__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->createHeuristicMask()), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_createHeuristicMask__Z(JNIEnv* env, jobject obj, jboolean clipTight)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->createHeuristicMask((bool) clipTight)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__III(JNIEnv* env, jobject obj, jint width, jint height, jint depth)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__IIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth, (int) numColors);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__IIIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors, jint bitOrder)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth, (int) numColors, (QImage::Endian) bitOrder);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject arg1, jint depth)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->create((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1), (int) depth);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__Lorg_kde_qt_QSize_2II(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->create((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_create__Lorg_kde_qt_QSize_2III(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors, jint bitOrder)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->create((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors, (QImage::Endian) bitOrder);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_depth(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->depth();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_detach(JNIEnv* env, jobject obj)
{
	((QImage*) QtSupport::getQt(env, obj))->detach();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QImage_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_dotsPerMeterX(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->dotsPerMeterX();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_dotsPerMeterY(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->dotsPerMeterY();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_fill(JNIEnv* env, jobject obj, jint pixel)
{
	((QImage*) QtSupport::getQt(env, obj))->fill((uint) pixel);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QImage*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_fromMimeSource(JNIEnv* env, jclass cls, jstring abs_name)
{
	(void) cls;
static QString* _qstring_abs_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(QImageJBridge::fromMimeSource((const QString&)*(QString*) QtSupport::toQString(env, abs_name, &_qstring_abs_name))), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_hasAlphaBuffer(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->hasAlphaBuffer();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_height(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->height();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImage_imageFormat(JNIEnv* env, jclass cls, jstring fileName)
{
	const char* _qstring;
	(void) cls;
static QString* _qstring_fileName = 0;
	_qstring = QImageJBridge::imageFormat((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_inputFormatList(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = QImageJBridge::inputFormatList();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_inputFormats(JNIEnv* env, jclass cls)
{
	QStrList  _qlist;
	(void) cls;
	_qlist = QImageJBridge::inputFormats();
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_invertPixels__(JNIEnv* env, jobject obj)
{
	((QImage*) QtSupport::getQt(env, obj))->invertPixels();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_invertPixels__Z(JNIEnv* env, jobject obj, jboolean invertAlpha)
{
	((QImage*) QtSupport::getQt(env, obj))->invertPixels((bool) invertAlpha);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_isGrayscale(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->isGrayscale();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_jumpTable(JNIEnv* env, jobject obj)
{
	uchar**  _qlist;
	_qlist = ((QImage*) QtSupport::getQt(env, obj))->jumpTable();
	return (jobject) _qlist;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_loadFromData___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
static QByteArray* _qbyteArray_data = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->loadFromData((QByteArray)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_loadFromData___3BLjava_lang_String_2(JNIEnv* env, jobject obj, jbyteArray data, jstring format)
{
static QByteArray* _qbyteArray_data = 0;
static QCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->loadFromData((QByteArray)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_loadFromData___3CI(JNIEnv* env, jobject obj, jcharArray buf, jint len)
{
static QByteArray* _qbytearray_buf = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_loadFromData___3CILjava_lang_String_2(JNIEnv* env, jobject obj, jcharArray buf, jint len, jstring format)
{
static QByteArray* _qbytearray_buf = 0;
static QCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len, (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static QString* _qstring_fileName = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_load__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static QString* _qstring_fileName = 0;
static QCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_mirror__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->mirror()), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_mirror__ZZ(JNIEnv* env, jobject obj, jboolean horizontally, jboolean vertically)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->mirror((bool) horizontally, (bool) vertically)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__III(JNIEnv* env, jobject obj, jint width, jint height, jint depth)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((int) width, (int) height, (int) depth));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__IIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((int) width, (int) height, (int) depth, (int) numColors));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__IIIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors, jint bitOrder)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((int) width, (int) height, (int) depth, (int) numColors, (QImage::Endian) bitOrder));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static QString* _qstring_fileName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static QString* _qstring_fileName = 0;
static QCString* _qstring_format = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__Lorg_kde_qt_QImage_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((const QImage&)*(const QImage*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject arg1, jint depth)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1), (int) depth));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__Lorg_kde_qt_QSize_2II(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage__Lorg_kde_qt_QSize_2III(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors, jint bitOrder)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((const QSize&)*(const QSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors, (QImage::Endian) bitOrder));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
static QByteArray* _qbyteArray_data = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_newQImage___3CIII_3III(JNIEnv* env, jobject obj, jcharArray data, jint w, jint h, jint depth, jintArray colortable, jint numColors, jint bitOrder)
{
static QByteArray* _qbytearray_data = 0;
	int* _int_colortable = QtSupport::toIntPtr(env, colortable);
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageJBridge((uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) w, (int) h, (int) depth,  (QRgb*) _int_colortable, (int) numColors, (QImage::Endian) bitOrder));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	env->SetIntArrayRegion(colortable, 0, 1, (jint *) _int_colortable);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_numBytes(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->numBytes();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_numColors(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->numColors();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_offset(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPoint(((QImage*) QtSupport::getQt(env, obj))->offset()), "org.kde.qt.QPoint", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->operator==((const QImage&)*(const QImage*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->operator!=((const QImage&)*(const QImage*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_outputFormatList(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = QImageJBridge::outputFormatList();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_outputFormats(JNIEnv* env, jclass cls)
{
	QStrList  _qlist;
	(void) cls;
	_qlist = QImageJBridge::outputFormats();
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_pixelIndex(JNIEnv* env, jobject obj, jint x, jint y)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->pixelIndex((int) x, (int) y);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_pixel(JNIEnv* env, jobject obj, jint x, jint y)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->pixel((int) x, (int) y);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_rect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QImage*) QtSupport::getQt(env, obj))->rect()), "org.kde.qt.QRect", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_reset(JNIEnv* env, jobject obj)
{
	((QImage*) QtSupport::getQt(env, obj))->reset();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_save__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static QString* _qstring_fileName = 0;
static QCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->save((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_save__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring fileName, jstring format, jint quality)
{
static QString* _qstring_fileName = 0;
static QCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->save((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_save__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject device, jstring format)
{
static QCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->save((QIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_save__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject device, jstring format, jint quality)
{
static QCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->save((QIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scaleHeight(JNIEnv* env, jobject obj, jint h)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->scaleHeight((int) h)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scaleWidth(JNIEnv* env, jobject obj, jint w)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->scaleWidth((int) w)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scale__II(JNIEnv* env, jobject obj, jint w, jint h)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->scale((int) w, (int) h)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scale__III(JNIEnv* env, jobject obj, jint w, jint h, jint mode)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->scale((int) w, (int) h, (QImage::ScaleMode) mode)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scale__Lorg_kde_qt_QSize_2(JNIEnv* env, jobject obj, jobject s)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->scale((const QSize&)*(const QSize*) QtSupport::getQt(env, s))), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_scale__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject s, jint mode)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->scale((const QSize&)*(const QSize*) QtSupport::getQt(env, s), (QImage::ScaleMode) mode)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setAlphaBuffer(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QImage*) QtSupport::getQt(env, obj))->setAlphaBuffer((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setColor(JNIEnv* env, jobject obj, jint i, jint c)
{
	((QImage*) QtSupport::getQt(env, obj))->setColor((int) i, (QRgb) c);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setDotsPerMeterX(JNIEnv* env, jobject obj, jint arg1)
{
	((QImage*) QtSupport::getQt(env, obj))->setDotsPerMeterX((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setDotsPerMeterY(JNIEnv* env, jobject obj, jint arg1)
{
	((QImage*) QtSupport::getQt(env, obj))->setDotsPerMeterY((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setNumColors(JNIEnv* env, jobject obj, jint arg1)
{
	((QImage*) QtSupport::getQt(env, obj))->setNumColors((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setOffset(JNIEnv* env, jobject obj, jobject arg1)
{
	((QImage*) QtSupport::getQt(env, obj))->setOffset((const QPoint&)*(const QPoint*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setPixel(JNIEnv* env, jobject obj, jint x, jint y, jint index_or_rgb)
{
	((QImage*) QtSupport::getQt(env, obj))->setPixel((int) x, (int) y, (uint) index_or_rgb);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImage_setText(JNIEnv* env, jobject obj, jstring key, jstring lang, jstring arg3)
{
static QCString* _qstring_key = 0;
static QCString* _qstring_lang = 0;
static QString* _qstring_arg3 = 0;
	((QImage*) QtSupport::getQt(env, obj))->setText((const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, lang, &_qstring_lang), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_size(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QImage*) QtSupport::getQt(env, obj))->size()), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_smoothScale__II(JNIEnv* env, jobject obj, jint w, jint h)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->smoothScale((int) w, (int) h)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_smoothScale__III(JNIEnv* env, jobject obj, jint w, jint h, jint mode)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->smoothScale((int) w, (int) h, (QImage::ScaleMode) mode)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_smoothScale__Lorg_kde_qt_QSize_2(JNIEnv* env, jobject obj, jobject s)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->smoothScale((const QSize&)*(const QSize*) QtSupport::getQt(env, s))), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_smoothScale__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject s, jint mode)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->smoothScale((const QSize&)*(const QSize*) QtSupport::getQt(env, s), (QImage::ScaleMode) mode)), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_swapRGB(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->swapRGB()), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_systemBitOrder(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QImageJBridge::systemBitOrder();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_systemByteOrder(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QImageJBridge::systemByteOrder();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_textKeys(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QImage*) QtSupport::getQt(env, obj))->textKeys();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_textLanguages(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QImage*) QtSupport::getQt(env, obj))->textLanguages();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImage_text__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key)
{
	QString  _qstring;
static QCString* _qstring_key = 0;
	_qstring = ((QImage*) QtSupport::getQt(env, obj))->text((const char*) QtSupport::toCharString(env, key, &_qstring_key));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImage_text__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key, jstring lang)
{
	QString  _qstring;
static QCString* _qstring_key = 0;
static QCString* _qstring_lang = 0;
	_qstring = ((QImage*) QtSupport::getQt(env, obj))->text((const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, lang, &_qstring_lang));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImage_text__Lorg_kde_qt_QImageTextKeyLang_2(JNIEnv* env, jobject obj, jobject arg1)
{
	QString  _qstring;
	_qstring = ((QImage*) QtSupport::getQt(env, obj))->text((const QImageTextKeyLang&)*(const QImageTextKeyLang*) QtSupport::getQt(env, arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImage_valid(JNIEnv* env, jobject obj, jint x, jint y)
{
	jboolean xret = (jboolean) ((QImage*) QtSupport::getQt(env, obj))->valid((int) x, (int) y);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImage_width(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImage*) QtSupport::getQt(env, obj))->width();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImage_xForm(JNIEnv* env, jobject obj, jobject matrix)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QImage*) QtSupport::getQt(env, obj))->xForm((const QWMatrix&)*(const QWMatrix*) QtSupport::getQt(env, matrix))), "org.kde.qt.QImage", TRUE);
	return xret;
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QImage_bits(JNIEnv *env, jobject obj)
{
static uchar * ptr = 0;
	ptr = ((QImageJBridge*) QtSupport::getQt(env, obj))->bits();
	int len = ((QImageJBridge*) QtSupport::getQt(env, obj))->numBytes();
	jbyteArray result = env->NewByteArray(len);
	env->SetByteArrayRegion(result, 0, len, (jbyte *) ptr);
	return result;
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QImage_scanLine(JNIEnv *env, jobject obj, jint arg1)
{
static uchar * ptr = 0;
	ptr = ((QImageJBridge*) QtSupport::getQt(env, obj))->scanLine(arg1);
	int len = ((QImageJBridge*) QtSupport::getQt(env, obj))->numBytes() / ((QImageJBridge*) QtSupport::getQt(env, obj))->height();
	jbyteArray result = env->NewByteArray(len);
	env->SetByteArrayRegion(result, 0, len, (jbyte *) ptr);
	return result;
}

JNIEXPORT jintArray JNICALL
Java_org_kde_qt_QImage_colorTable(JNIEnv *env, jobject obj)
{
static QRgb * ptr = 0;
	ptr = ((QImageJBridge*) QtSupport::getQt(env, obj))->colorTable();
	int len = ((QImageJBridge*) QtSupport::getQt(env, obj))->numColors();
	jintArray result = env->NewIntArray(len);
	env->SetIntArrayRegion(result, 0, len, (jint *) ptr);
	return result;
}

