--- a/javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/library/graphics/gfxos.cpp Fri Jul 23 12:27:20 2010 +0300
+++ b/javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/library/graphics/gfxos.cpp Thu Aug 05 16:07:57 2010 +0300
@@ -967,6 +967,21 @@
return POINTER_TO_HANDLE(img);
}
+jint JNICALL Java_org_eclipse_swt_internal_qt_graphics_OS_image_1create__I
+ (JNIEnv* aJniEnv , jclass, jint aPixmapHandle)
+{
+ Image* img = NULL;
+ GFX_TRY
+ {
+ SWT_LOG_JNI_CALL();
+ HANDLE_TO_POINTER(QPixmap*, pixmap, aPixmapHandle);
+ if (pixmap)
+ img = GraphicsFactory::createImage(*pixmap);
+ }
+ GFX_CATCH
+ return POINTER_TO_HANDLE(img);
+}
+
jint JNICALL Java_org_eclipse_swt_internal_qt_graphics_OS_image_1getFormat
(JNIEnv* aJniEnv, jclass, jint aImageHandle)
{