void OnSave(wxCommandEvent& WXUNUSED(event))
{
- wxImage image(m_bitmap);
+ wxImage image = m_bitmap.ConvertToImage();
int bppselection = wxGetSingleChoiceIndex("Set BMP BPP",
"Set BMP BPP",
#if wxUSE_GIF
image.Destroy();
- if ( !image.LoadFile( dir + wxString("horse.gif")) )
+ if ( !image.LoadFile( dir + wxString("horse.gif")))
+ //if ( !image.LoadFile( wxString("\\slidbar.gif"), wxBITMAP_TYPE_GIF, -2) )
wxLogError(wxT("Can't load GIF image"));
else
my_horse_gif = new wxBitmap( image );
delete my_horse_ico32;
delete my_horse_ico16;
delete my_horse_ico;
+ delete my_horse_cur;
delete my_smile_xbm;
delete my_square;
delete my_anti;
wxRED_PEN->GetColour().Red(),
wxRED_PEN->GetColour().Green(),
wxRED_PEN->GetColour().Blue() );
- dc.DrawBitmap( i.ConvertToBitmap(), 150, 2010, TRUE );
+ dc.DrawBitmap( wxBitmap(i), 150, 2010, TRUE );
dc.SetTextForeground( wxT("BLACK") );
}
wxRED_PEN->GetColour().Red(),
wxRED_PEN->GetColour().Green(),
wxRED_PEN->GetColour().Blue() );
- dc.DrawBitmap( i.ConvertToBitmap(), 150, 2130, TRUE );
+ dc.DrawBitmap( wxBitmap(i), 150, 2130, TRUE );
dc.SetTextForeground( wxT("BLACK") );
}
blue = blue/4;
anti.SetRGB( x, y, red, green, blue );
}
- my_anti = new wxBitmap( anti.ConvertToBitmap() );
+ my_anti = new wxBitmap(anti);
}
// MyFrame
return;
}
- (new MyImageFrame(this, image.ConvertToBitmap()))->Show();
+ (new MyImageFrame(this, wxBitmap(image)))->Show();
}
//-----------------------------------------------------------------------------