diff options
Diffstat (limited to 'qtjava/javalib/qtjava/TQImageFormat.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/TQImageFormat.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/TQImageFormat.cpp b/qtjava/javalib/qtjava/TQImageFormat.cpp new file mode 100644 index 00000000..08e93dcc --- /dev/null +++ b/qtjava/javalib/qtjava/TQImageFormat.cpp @@ -0,0 +1,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 TQByteArray* _qbytearray_buffer = 0; + jint xret = (jint) ((TQImageFormat*) QtSupport::getQt(env, obj))->decode((TQImage&)*(TQImage*) QtSupport::getQt(env, img), (TQImageConsumer*) QtSupport::getQt(env, consumer), (const uchar*) QtSupport::toUcharArray(env, buffer, &_qbytearray_buffer), (int) length); + return xret; +} + |