diff --git a/etg/image.py b/etg/image.py index 142c9f05..11c44e7b 100644 --- a/etg/image.py +++ b/etg/image.py @@ -314,6 +314,7 @@ def run(): if p.type == 'unsigned char': p.pyInt = True + setParamsPyInt('Clear') setParamsPyInt('Replace') setParamsPyInt('ConvertAlphaToMask') setParamsPyInt('ConvertToMono') diff --git a/unittests/test_image.py b/unittests/test_image.py index 767b36a7..fb3f6202 100644 --- a/unittests/test_image.py +++ b/unittests/test_image.py @@ -310,6 +310,10 @@ class image_Tests(wtc.WidgetTestCase): imghndlr = TestImageHandler() wx.Image.AddHandler(imghndlr) + def test_imageClear(self): + img = wx.Image(100,100) + img.Clear(255) + #---------------------------------------------------------------------------