Re: Extract image from Gtk::Image
- From: José Alburquerque <jaalburquerque cox net>
- To: Andreas Bauer <baueran rsise anu edu au>
- Cc: gtkmm-list gnome org
- Subject: Re: Extract image from Gtk::Image
- Date: Mon, 01 Jun 2009 02:47:34 -0400
On Mon, 2009-06-01 at 02:21 -0400, José Alburquerque wrote:
> That's right. I quickly read the docs, ignoring that the images that
> the Gdk::Pixbuf::create() methods accepts are Gdk::Image and not
> Gtk::Image. Still, Gtk::Image has get_pixbuf() which should work
> instead of using Gdk::Pixbuf::create().
Then again, getting a Gdk::Pixbuf from a Gtk::Image depends on its
storage type (see:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Image.html#d4e3b782ceebdc884a50dd93ed4c3e2c) so using Gtk::Image::get_pixbuf() will work only if it is already using a Gdk::Pixbuf internally.
--
José Alburquerque
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]