Re: export GdkPixmap to graphics file?

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

 



gdk_pixbuf_save (pixbuf, save_filename, "png", &error, NULL);

For more detail see:

http://developer.gimp.org/api/2.0/gdk-pixbuf/gdk-pixbuf-file-saving.html

Regards,
Dov

On 12/15/06, David L <idht4n@xxxxxxxxxxx> wrote:
> Hi,
>
> I'm using cairo to create a GdkPixmap that I display in a
> gtk drawing area.  I'd like to create a graphics file with the
> content of the pixbuf when I click on the drawing area.  Is
> there a simple function to create some kind of graphics
> file from a GdkPixmap?  I've thought of just drawing
> everything twice, once into the pixmap and once into a
> cairo_surface_t structure and then using cairo's surface
> to file export functions to create the file, but that seems
> pretty wasteful because I'd be drawing every object twice.
> So is there any function that I can call like this:
>
> GdkPixmapWriteToPng(GdkPixmap *,
>                                              const char *filename);
>
> Thanks...
>
>             David
>
> _________________________________________________________________
> View Athlete's Collections with Live Search
> http://sportmaps.live.com/index.html?source=hmemailtaglinenov06&FORM=MGAC01
>
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux