summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QImageFormat.cpp
blob: 1206a10fb7fa45754d9d4390ed6506116daaee18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqasyncimageio.h>
#include <tqimage.h>

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImageFormat_decode(JNIEnv* env, jobject obj, jobject img, jobject consumer, jcharArray buffer, jint length)
{
static TTQByteArray* _qbytearray_buffer = 0;
	jint xret = (jint) ((TTQImageFormat*) QtSupport::getQt(env, obj))->decode((TTQImage&)*(TTQImage*) QtSupport::getQt(env, img), (TTQImageConsumer*) QtSupport::getQt(env, consumer), (const uchar*) QtSupport::toUcharArray(env, buffer, &_qbytearray_buffer), (int) length);
	return xret;
}