Re: gdk_draw_pixbuf

2006-06-28 Thread 3saul
, gpointer data) { gdk_draw_pixbuf (link_drawable[i]->window, NULL, background_pixbuf[i], 0, 0, 0, 0, -1, -1, GDK_RGB_DITHER_NORMAL, 0, 0); return TRUE; } main() ... link_drawable = g_new(GtkWidget*, total_s); background_pixbuf = g_new(GdkPixbuf*, total_s); background_pixbuf[i] = gdk_pixbuf_new_fro

Re: gdk_draw_pixbuf

2006-06-26 Thread Yeti
On Mon, Jun 26, 2006 at 09:01:43PM -0700, 3saul wrote: > > 1. Is it possible to use gdk_draw_pixbuf to draw onto a GTKDrawingArea (the > doco states that it's possible but I can't figure out how to) http://developer.gnome.org/doc/API/2.0/gtk/GtkDrawingArea.html shows

gdk_draw_pixbuf

2006-06-26 Thread 3saul
I have two questions regarding drawing: 1. Is it possible to use gdk_draw_pixbuf to draw onto a GTKDrawingArea (the doco states that it's possible but I can't figure out how to) 2. Upon resizing a GTKDrawingArea will it's contents be resized automatically? -- View this mes

Re: Very slow gdk_draw_pixbuf

2005-09-05 Thread Juhana Sadeharju
>From: Barry Demchak <[EMAIL PROTECTED]> > >I am trying to use gdk_draw_pixbuf to render a .PNG into a window via a >pixmap. (Actually, this is a much simplified case of trying to use librsvg >to render into a window.) [ ... ] > pixbuf = gdk_pixbuf_new_from_file((gcha

Re: Very slow gdk_draw_pixbuf

2005-09-01 Thread Barry Demchak
f == NULL) pixbuf = gdk_pixbuf_new_from_file((gchar *) "mapserv.png", NULL); if (pixbuf) { GTimer *timer; timer = g_timer_new(); gdk_draw_pixbuf(pixmap, NULL, pixbuf, 0, 0, 0, 0, -1, -1, GDK_RGB_DITHER_NORMAL, 0, 0); printf( "gdk_draw_pixbuf too

Re: Very slow gdk_draw_pixbuf

2005-09-01 Thread John Cupitt
_timer_new(); gdk_draw_pixbuf(pixmap, NULL, pixbuf, 0, 0, 0, 0, -1, -1, GDK_RGB_DITHER_NORMAL, 0, 0); printf( "gdk_draw_pixbuf took %gs\n", g_timer_elapsed( timer, NULL ) ); g_timer_destroy( timer ); } else g_print("No pixbuf!\n"); #else And for a 300x3

Very slow gdk_draw_pixbuf

2005-09-01 Thread Barry Demchak
Hi -- I am trying to use gdk_draw_pixbuf to render a .PNG into a window via a pixmap. (Actually, this is a much simplified case of trying to use librsvg to render into a window.) To make it as simple as possible, I grafted a gdk_draw_pixbuf call into scribble. When the rendering occurs, it

Very slow gdk_draw_pixbuf

2005-08-31 Thread Barry Demchak
Hi -- I am trying to use gdk_draw_pixbuf to render a .PNG into a window via a pixmap. (Actually, this is a much simplified case of trying to use librsvg to render into a window.) To make it as simple as possible, I grafted a gdk_draw_pixbuf call into scribble. When the rendering occurs, it