, 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
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
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
>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
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
_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
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
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