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: Fri, 22 May 2009 17:06:39 -0400
On Fri, 2009-05-22 at 13:20 +1000, Andreas Bauer wrote:
> Hi together,
>
> I have a somewhat largish Gtk::Image in my program, and would like to
> take out rectangular areas from it, which in turn should be
> represented as Gtk::Images for later use.
>
> Does someone have any idea on how to achieve this with gtkmm?
>
> I assume I need to do something with a Pixbuffer as intermediate step,
> but it wasn't obvious to me on how to actually proceed.
Use one of the Gdk::Pixbuff::create() methods that accept a Gtk::Image.
After, construct your images with one of the Gtk::Image constructors.
--
José Alburquerque
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]