mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Update wx.Image.Scale doc snippet
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
if bmp.GetWidth() != 32 or bmp.GetHeight() != 32:
|
||||
|
||||
image = bmp.ConvertToImage()
|
||||
bmp = wx.BitmapFromImage(image.Scale(32, 32))
|
||||
bmp = wx.Bitmap(image.Scale(32, 32))
|
||||
|
||||
# another possibility:
|
||||
image.Rescale(32, 32)
|
||||
bmp = wx.BitmapFromImage(image)
|
||||
bmp = wx.Bitmap(image)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user