mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-25 00:43:39 +08:00
Add wxImage::Scale() and Rescale() overloads taking wxSize
Use them in the code where this is more convenient than using individual components. No real changes, just make resizing the images a bit more convenient.
This commit is contained in:
@@ -263,7 +263,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
// do not scale on already small screens
|
||||
if (!m_isPda)
|
||||
image.Rescale( bitmap.GetWidth()/2, bitmap.GetHeight()/2 );
|
||||
image.Rescale(bitmap.GetSize()/2);
|
||||
|
||||
bitmap = wxBitmap(image);
|
||||
wxSplashScreen *splash = new wxSplashScreen(bitmap,
|
||||
|
||||
Reference in New Issue
Block a user