Various distrib related changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -142,14 +142,16 @@ MyCanvas::MyCanvas( wxWindow *parent, wxWindowID id,
|
||||
wxImage image( bitmap );
|
||||
|
||||
#if wxUSE_LIBPNG
|
||||
image.LoadFile( dir + wxString("test.png") );
|
||||
my_square = new wxBitmap( image.ConvertToBitmap() );
|
||||
|
||||
if ( !image.SaveFile( dir + wxString("test.png"), wxBITMAP_TYPE_PNG ) )
|
||||
wxLogError("Can't save file");
|
||||
|
||||
image = wxImage( 100, 100 );
|
||||
|
||||
image.LoadFile( dir + wxString("test.png") );
|
||||
my_square = new wxBitmap( image.ConvertToBitmap() );
|
||||
|
||||
image = wxImage( 100, 100 );
|
||||
|
||||
if ( !image.LoadFile( dir + wxString("horse.png"), wxBITMAP_TYPE_PNG ) )
|
||||
wxLogError("Can't load PNG image");
|
||||
else
|
||||
|
Reference in New Issue
Block a user