#include <QSwingImageBridge.h>
Static Public Member Functions | |
static jlong | createImage (JNIEnv *env) |
Creates new image. | |
static jlong | createImage (JNIEnv *env, jobject obj, jbyteArray imageData, jint lenght) |
Creates new image. | |
static jobject | createScaled (JNIEnv *env, jlong imagePointer, jint width, jint height, jint hints, jstring format) |
Creates new image. | |
static void | initialize (JNIEnv *env, jclass cls) |
Initializes QSwingImageBridge class. | |
static jobject | newInstance (const QPixmap &pixmap, jstring format) |
Creates QSwing image from specified QPixmap. | |
static QPixmap * | createDisabledPixmap (QPixmap *pm) |
Creates new disabled Pixmap from the specified Pixmap. | |
static bool | loadImage (JNIEnv *env, jbyteArray imageData, jint length, QPixmap *pixmap) |
Loads image. |
jlong QSwingImageBridge::createImage | ( | JNIEnv * | env | ) | [static] |
Creates new image.
env | the JNIEnv pointer |
jlong QSwingImageBridge::createImage | ( | JNIEnv * | env, | |
jobject | obj, | |||
jbyteArray | imageData, | |||
jint | lenght | |||
) | [static] |
Creates new image.
env | the JNIEnv pointer | |
obj | the QSwing image object | |
imageData | the image data | |
lenght | the lenght of the image data |
jobject QSwingImageBridge::createScaled | ( | JNIEnv * | env, | |
jlong | imagePointer, | |||
jint | width, | |||
jint | height, | |||
jint | hints, | |||
jstring | format | |||
) | [static] |
Creates new image.
env | the JNIEnv pointer | |
imagePointer | the pointer of the original image | |
width | the new image width | |
height | the new image height | |
hints | the transformation hints | |
format | the format |
void QSwingImageBridge::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes QSwingImageBridge class.
env | the JNIEnv pointer | |
cls | the QSwingGraphics class |
jobject QSwingImageBridge::newInstance | ( | const QPixmap & | pixmap, | |
jstring | format | |||
) | [static] |
Creates QSwing image from specified QPixmap.
pixmap | the pixmap | |
format | the image format |
QPixmap * QSwingImageBridge::createDisabledPixmap | ( | QPixmap * | pm | ) | [static] |
Creates new disabled Pixmap from the specified Pixmap.
pm | the QPixmap |
bool QSwingImageBridge::loadImage | ( | JNIEnv * | env, | |
jbyteArray | imageData, | |||
jint | length, | |||
QPixmap * | pixmap | |||
) | [static] |
Loads image.
env | the JNIEnv pointer | |
imageData | the image data | |
length | the image data length | |
pixmap | the pixmap |
true
if succeed