Pixbuf from Gdk::Window

Hi,

I want to crate a Gdk::Pixbuf from the content of a Gdk::Window. In Gtk
2.0 times there was the method Gdk::Pixbuf.from_drawable. But this is
removed in Gtk 3.0. In Gtk+ in C there is now the function
gdk_pixbuf_get_from_window but I find no method in Gdk::Window that
matches this. Is it not implemented?

Cheers detlef

Hi,

2014-03-26 13:44 GMT+09:00 Detlef R. [email protected]:

I want to crate a Gdk::Pixbuf from the content of a Gdk::Window. In Gtk
2.0 times there was the method Gdk::Pixbuf.from_drawable. But this is
removed in Gtk 3.0. In Gtk+ in C there is now the function
gdk_pixbuf_get_from_window but I find no method in Gdk::Window that
matches this. Is it not implemented?

Thank you for the good report! It probably isn’t implemented yet.

https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gdk3/ext/gdk3/rbgdkpixbuf.c#L27

We will implement sooner or later. :slight_smile:


myokoym

Hi,

i saw, that you implemented it. Thank you very much for this, cause now
I can go further with my project :slight_smile:

Cheers, detlef

Am 28.03.2014 01:29, schrieb Masafumi Y.:

Yes, I’ve implemented. Please tell us if you find a problem.
Good luck with your project :wink:


myokoym

2014-03-31 2:15 GMT+09:00 Detlef R. [email protected]:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs