export GdkPixmap to graphics file?
- From: "David L" <idht4n hotmail com>
- To: gtk-list gnome org
- Subject: export GdkPixmap to graphics file?
- Date: Fri, 15 Dec 2006 11:58:53 -0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]