Image? Neither wxImage nor wxBitmap has according to the current documentation a function named
Sizewhich returns a copy of the image with the new size (what probably happens in your case). Use
Resizein order to change the size of an image in place.
Imageis a local varibale within
OnSaveImage(). I'd expect that for Memory too which is a wxMemoryDC?