Question about printing a drawable



Hello.

This question goes to Havoc.

I read this message from the GTK+ mailing list archives:

>Re: Printing snapshot of a window

>     From: Havoc Pennington <hp redhat com> 
>     To: "Tim Betts" <tbetts nortelnetworks com> 
>     Cc: gtk-app-devel-list gnome org
>     Subject: Re: Printing snapshot of a window 
>     Date: 01 Jun 2000 13:12:06 -0400

>"Tim Betts" <tbetts nortelnetworks com> writes:
>> Just wondered if anyone knew of a C library or way of programmically 
>>taking a snapshot of a given X GtkWindow and printing it to a lazer
>>printer. I would like to do it all from within the application via a
>>print button. Any ideas, references or code would be greatly
>>appreciated.


>gdk-pixbuf can take a snapshot of a drawable, and gnome-print has a
>routine to print a GdkPixbuf. You can copy the code if you don't want
>to use the libraries.

>Havoc

So my question is: What's the gdk-pixbuf? How can I use it?

Thanks.

Jose.





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