]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/image.tex
removed deprecated calls from wxImage example (bug #688438)
[wxWidgets.git] / 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 )
     {
-        wxImage image(bmp);
+        wxImage image = bmp.ConvertToImage();
         bmp = wxBitmap(image.Scale(32, 32));
 
         // another possibility: