61 |
/** |
/** |
62 |
* Loads a pixmap from a file. |
* Loads a pixmap from a file. |
63 |
*/ |
*/ |
64 |
JNIEXPORT jboolean JNICALL Java_gnu_java_awt_peer_gtk_GtkImage_loadPixbuf |
JNIEXPORT jboolean JNICALL |
65 |
(JNIEnv *env, jobject obj, jstring name) |
Java_gnu_java_awt_peer_gtk_GtkImage_loadPixbuf |
66 |
|
(JNIEnv *env, jobject obj, jstring name) |
67 |
{ |
{ |
68 |
const char *filename; |
const char *filename; |
69 |
int width, height; |
int width, height; |
267 |
* Draws the pixbuf at x, y, scaled to width and height and |
* Draws the pixbuf at x, y, scaled to width and height and |
268 |
* optionally composited with a given background color. |
* optionally composited with a given background color. |
269 |
*/ |
*/ |
270 |
JNIEXPORT void JNICALL Java_gnu_java_awt_peer_gtk_GtkImage_drawPixelsScaled |
JNIEXPORT void JNICALL |
271 |
(JNIEnv *env, jobject obj, jobject gc_obj, |
Java_gnu_java_awt_peer_gtk_GtkImage_drawPixelsScaled |
272 |
jint bg_red, jint bg_green, jint bg_blue, |
(JNIEnv *env, jobject obj, jobject gc_obj, |
273 |
jint x, jint y, jint width, jint height, jboolean composite) |
jint bg_red, jint bg_green, jint bg_blue, |
274 |
|
jint x, jint y, jint width, jint height, jboolean composite) |
275 |
{ |
{ |
276 |
GdkPixbuf* dst; |
GdkPixbuf* dst; |
277 |
struct graphics *g; |
struct graphics *g; |