/* * call-seq: * marshal_dump -> Array * * Provides marshalling support for use by the Marshal library. * ===Return value * Array */ DLL_LOCAL VALUE _marshal_dump(VALUE self) { VALUE result = rb_ary_new(); rb_ary_push(result,_GetWidth(self)); rb_ary_push(result,_GetHeight(self)); rb_ary_push(result,_getData(self)); rb_ary_push(result,_getAlpha(self)); rb_ary_push(result,_getMask(self)); #if wxUSE_PALETTE rb_ary_push(result,_getPalette(self)); #else rb_ary_push(result,Qnil); #endif return result; }
int UIGetHeight() { return _GetHeight(); }
//an overloaded version of the above to draw the picture //as well in a given DC HBITMAP CPicture::LoadPicture(char *FileName, HDC hdc) { HBITMAP hbmp = this->LoadPicture(FileName); this->DrawPicture(hdc, 0, 0, this->_GetWidth(), _GetHeight()); return hbmp; }