m_display = bitmap.GetDisplay();
- wxImage image( bitmap );
+ wxImage image = bitmap.ConvertToImage();
if (!image.Ok()) return FALSE;
m_display = bitmap.GetDisplay();
// Try to save the bitmap via wxImage handlers:
{
- wxImage image( *this );
+ wxImage image(this->ConvertToImage()) ;
if (image.Ok()) return image.SaveFile( name, type );
}
{
wxImage image;
if (!image.LoadFile( name, type )) return FALSE;
- if (image.Ok()) *this = image.ConvertToBitmap();
+ if (image.Ok()) *this = wxBitmap(image);
else return FALSE;
}