From: Michal S. <hra...@ce...> - 2009-07-26 11:40:34
|
Hello I am using: libgtk2-ruby1.8 0.19.0-3 I get: image.rb:27:in `step': undefined method `pixels=' for #<Gdk::Pixbuf:0xb790c970 ptr=0x8ff1c38> from image.rb:32:in `on_button_clicked' from image.rb:5:in `to_proc' from image.rb:77:in `call' from image.rb:77:in `main' the pixels= method is documented here: http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gdk%3A%3APixbuf Without reloading the pixels the image seems unchanged. Any advice on modifying images welcome. I want to change individual pixels programatically and view the results in realtime, hence the pixels accessor. I just want to visually verify what is done to the image, I am not particularly interested in performance. While it would be possible to draw the image programatically as well I would prefer loading a test pattern from a file so that it can be replaced easily. Thanks Michal |