Re: how to print drawing area




a better aproach please,

--- Hubert Soko³owski <h sokolowski wsisiz edu pl>
wrote:

On Sat, 30 Jul 2005 00:55:44 -0700 (PDT)
Yogesh M <yzonesoft yahoo com> wrote:

I want to print the drawing area and it should
work in windows and linux. I am using gtk 2.4.
 
you can save it to a jpeg file
dest = gdk_pixbuf_get_from_drawable (NULL,
drawing_area->window, NULL,
 0,0,0,0, width, height);

ret = gdk_pixbuf_save (dest, figname, "jpeg",
&error,
                               "quality", "100",
NULL);

and then open some external application to show it
and print it,
for example html browser will do that.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]