search for: imagesapp

Displaying 2 results from an estimated 2 matches for "imagesapp".

Did you mean: imagemap
2005 Jan 22
9
Dragging images across the canvas
...et_x y = event.get_y move_region(x,y) if (@left_dn and (@reg.contains(x,y) == 0)) end def on_paint paint{|dc| dc.clear dc.draw_bitmap(@bitmap, 0, 0, false) } w,h = @bitmap.get_width, @bitmap.get_height @reg = Wx::Region.new(0,0,w,h) end end class ImagesApp < Wx::App def on_init frame = MyFrame.new("Simple Image Demo") frame.show end end Wx::init_all_image_handlers a = ImagesApp.new a.main_loop() __END__ _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge...
2003 Nov 24
3
wxImageHandler type?
Hiya, I was trying to figure out how to display PNG files using wxWindows/wxRuby. Google turned up a few things, mainly discussing the wxImageHandler class and it''s children, etc, but there seems to be no mention of them in the wxRuby source. Are they there, and I missed them, or are they just not there? If there not there, is there a quick and dirty way to get them in? It seems like