Re: converting a GdkImage into a GdkPixbuf



>  Say I have a GdkImage. What's the best way to convert it into a GdkPixbuf?
>  Do I have to do it one pixel at a time?

You can do that, but that's really really gross and slow.

If you have a source drawable, you can use
gdk_pixbuf_get_from_drawable() to get a region from the drawable and
put it in a pixbuf.  This does need a server->client copy, though.

  Federico




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