I have to create at runtime an opaque rectanlge and then I have to draw it on a Panel. I tryed creating an Empty Bitmap, drawing on it a rectangle, trasforming it in an image an then setting the Alpha for the whole pixels, but the program stops when I try 'image.SetAlpha' giving me a wxPython assertion error.
I have to create at runtime an opaque rectanlge and then I have to draw it on a Panel. I tryed creating an Empty Bitmap, drawing on it a rectangle, trasforming it in an image an then setting the Alpha for the whole pixels, but the program stops when I try 'image.SetAlpha' giving me a wxPython assertion error.
Maybe someone knows how can I solve the problem?
Call image.InitAlpha() first.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!