search for: converttoimage

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

2005 May 02
3
where is destructors?
...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 ================================================...
2007 Mar 28
0
[923] branches/wxruby2/wxwidgets_282: Changes 2.6 -> 2.8 Wx API; remove unsupported methods and examples from doc
...0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0 }; - - #ifdef __WXMSW__ - Bitmap down_bitmap(down_bits, 32, 32); - Bitmap down_mask_bitmap(down_mask, 32, 32); - - down_bitmap.SetMask(new Mask(down_mask_bitmap)); - Image down_image = down_bitmap.ConvertToImage(); - down_image.SetOption(IMAGE_OPTION_CUR_HOTSPOT_X, 6); - down_image.SetOption(IMAGE_OPTION_CUR_HOTSPOT_Y, 14); - Cursor down_cursor = Cursor(down_image); - #else - Cursor down_cursor = Cursor(down_bits, 32, 32, - 6, 14, down_mask, WHITE, BLACK); - #endif - - - *destructor*() - -Destroys the...