Re: how to print drawing area
- From: Hubert Sokołowski <h sokolowski wsisiz edu pl>
- To: gtk-app-devel-list gnome org
- Subject: Re: how to print drawing area
- Date: Sat, 30 Jul 2005 16:43:36 +0200
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]