How to get a Drawing area image as a file (BMP).

2006-05-02 Thread sadhees kumar
Hi Everybody,      Im desperately trying to get a drawing area widget as a bmp file but in vain. My code looks like this.     colormap = gtk_widget_get_colormap(da_setting_ff); gtk_widget_realize(da_setting_ff); pixbuf = gdk_pixbuf_get_from_drawable(NULL,GTK_DRAWABLE(da_setting_ff)->w

Re: How to get a Drawing area image as a file (BMP).

2006-05-02 Thread muppet
This list is for discussion of the development of the gtk+ toolkit itself. Questions about using gtk+ should go to gtk-app-devel- [EMAIL PROTECTED] On May 2, 2006, at 3:34 AM, sadhees kumar wrote: pixbuf = gdk_pixbuf_get_from_drawable(NULL,GTK_DRAWABLE (da_setting_ff)->window, In gtk+ there

Re: How to get a Drawing area image as a file (BMP).

2006-05-04 Thread sadhees kumar
Hi All, For my application i need to get the picture drawn in the drawing area widget as a file.I have written the following code , but it doesnt work .. (i.e) the function ->     gdk_pixbuf_save() . i can get as a JPEG file but i tried several times to get a BMP f