wxMSW requires mask bitmaps to have 1-bit depth

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-09-17 19:48:15 +00:00
parent dad6865951
commit ce158b85e3

View File

@@ -56,11 +56,13 @@ class BitmapTests(wtc.WidgetTestCase):
def test_BitmapMask(self):
b5 = wx.Bitmap(pngFile)
img = wx.Image(pngFile)
img = img.ConvertToMono(0,0,0)
bmp = wx.Bitmap(img, 1)
m = wx.Mask()
m = wx.Mask(b5, 4)
m = wx.Mask(b5)
m = wx.Mask(b5, wx.Colour(1,2,3))
m = wx.Mask(bmp, 4)
m = wx.Mask(bmp)
m = wx.Mask(bmp, wx.Colour(1,2,3))
#---------------------------------------------------------------------------