PDA

View Full Version : Converting Pixbuf to Cairo. Help!



racingsnailrider
August 29th, 2009, 12:04 PM
Can anyone explain to me why this does not work and the way it should be done?

cairo_t*cr;
cr=gdk_cairo_create(widget->window);
GdkPixbuf*pix=gtk_image_get_pixbuf((GtkImage*)imag e);
gdk_cairo_set_source_pixbuf(cr,pix,0,0);
cairo_rectangle (cr,0,0,800,800);
cairo_fill(cr);

Many Thnx

napsy
August 29th, 2009, 01:08 PM
What is image?