]> git.saurik.com Git - wxWidgets.git/commitdiff
removed deprecated calls from wxImage example (bug #688438)
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 2 Mar 2003 11:01:09 +0000 (11:01 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 2 Mar 2003 11:01:09 +0000 (11:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/image.tex

index e8bad3500f9eda4dd616ef9bbbb864d3d5c0d38a..55f4f0545b6fabcbb0dee94c9290396c753bbd39 100644 (file)
@@ -791,7 +791,7 @@ Example:
     // rescale it to have size of 32*32
     if ( bmp.GetWidth() != 32 || bmp.GetHeight() != 32 )
     {
     // rescale it to have size of 32*32
     if ( bmp.GetWidth() != 32 || bmp.GetHeight() != 32 )
     {
-        wxImage image(bmp);
+        wxImage image = bmp.ConvertToImage();
         bmp = wxBitmap(image.Scale(32, 32));
 
         // another possibility:
         bmp = wxBitmap(image.Scale(32, 32));
 
         // another possibility: