Dump Gnome Canvas to image file



Title: Dump Gnome Canvas to image file

Hi List,

I am trying to dump gnome canvas to image file. I got following code from archive which works, however it dumps only viewable window only.

Code:

GdkImlibImage *image =

gdk_imlib_create_image_from_drawable(canvas->window,NULL,0,0,width,height);

gdk_imlib_save_image(image, filename, info);

Questions:

1. How can I dump entire canvas drawing into a file?

2. Is there a better way to dump gnome canvas to file instead of using gdk_imlib?

Thanks in advance.

Best regards,

Rajesh Padalia


-----------------------------------------------------------------------------------------------------------

Qatar Liquefied Gas Company Ltd. (http://www.qatargas.com)

Disclaimer: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by another person is not permitted. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you have received this e-mail by mistake, please e-mail the sender by replying to this message, and deleting the original and any printout thereof.




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