Re: converting a GdkImage into a GdkPixbuf
- From: Federico Mena Quintero <federico helixcode com>
- To: darin eazel com
- Cc: gnome-devel-list gnome org
- Subject: Re: converting a GdkImage into a GdkPixbuf
- Date: Wed, 3 May 2000 01:32:36 -0500
> 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]