search for: convert_to_imag

Displaying 3 results from an estimated 3 matches for "convert_to_imag".

Did you mean: convert_to_image
2008 Mar 19
0
[ wxruby-Bugs-18942 ] Wx::Image#convert_to_bitmap() and Wx::Bitmap.convert_to_image()
...rubyforge.org/tracker/?func=detail&atid=218&aid=18942&group_id=35 Category: Incorrect or missing docs Group: current Status: Open Resolution: None Priority: 3 Submitted By: Mario Steele (eumario) Assigned to: Alex Fenton (brokentoy) Summary: Wx::Image#convert_to_bitmap() and Wx::Bitmap.convert_to_image() Initial Comment: These methods are documents, yet are not available as of wxRuby 1.9.5 release. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=18942&group_id=35
2006 Dec 26
0
[806] trunk/wxruby2/samples/treectrl: Restored demonstration of use of icons and fonts within TreeCtrl
...idth() </ins><span class="cx"> if size == orig_size </span><del>- images.add(icons[i]) </del><ins>+ images.add(ic) </ins><span class="cx"> else </span><del>- resized = icons[i].convert_to_image().rescale(size, size) </del><ins>+ resized = ic.convert_to_image().rescale(size, size) </ins><span class="cx"> images.add( Wx::Bitmap.new(resized) ) </span><span class="cx"> end </span><span class="cx&...
2005 May 02
3
where is destructors?
...objects in wxruby? Is there some problems? This is a patch: ================================================================ --- src/bitmap.cpp 30 Nov 2003 22:54:48 -0000 1.2 +++ src/bitmap.cpp 2 May 2005 11:11:58 -0000 @@ -32,10 +32,16 @@ rb_define_method(rubyClass, "convert_to_image", VALUEFUNC(WxBitmap::ConvertToImage), 0); } +void WxBitmap_free(wxBitmap *bmp) { + if(bmp) { + delete bmp; + }; +}; + VALUE WxBitmap::alloc(VALUE self) { - return Data_Wrap_Struct(self, 0, 0, 0); + return Data_Wrap_Struct(self, 0, WxBitmap_free, 0); } VALUE =====...