Re: How can convert GdkImage to GdkPixbuf



GONZALOMZ <GONZALOMZ teleline es> writes:
I want to know if exist a easy way and efficient to convert
a GdkImage to GdkPixbuf.I want to know how is the 
gpointer *mem of the struct GdkImage. I try 

gdk_pixbuf_new_from_data((guchar *)mem, ...

and give me error.

You need access to the internals of gdk_pixbuf_get_from_drawable(). 
GTK 1.3 version of gdk-pixbuf exports this as
gdk_pixbuf_get_from_image().

Havoc




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