On Sep 10, 2017, at 9:33 AM, 'Torsten' via wxPython-users <wxpytho...@googlegroups.com> wrote:
I have a bitmap with a transparent part. This bitmap is painted multiple times in the frame. How can i use the transparent part of the bitmap to build a shape for the window. I've attached a sample that should demonstrate what i want to achieve. The sample uses given values for the sahpe, but my final code doesn't know them.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<shaped.py>
Hello Rufus,
no, i want a wx.Frame() that has no border and no background (like totally transparent), but only the frame. Buttons and pictures that i place inside should be fully visible. From my reading this is done with wx.frame.SetShape(wx.RegionFromBitmap(bmp)). The bmp is a black/white bitmap. The black part will be the transparent part of the frame (shape). For buttons i can easily get the position and size and paint a white rectangle on black ground. But the picture is my problem.
What in the initial picture is transparent should be black, all other colours should be white.
On Monday, September 11, 2017 at 10:18:45 AM UTC-7, Torsten wrote:Hello Rufus,
no, i want a wx.Frame() that has no border and no background (like totally transparent), but only the frame. Buttons and pictures that i place inside should be fully visible. From my reading this is done with wx.frame.SetShape(wx.RegionFromBitmap(bmp)). The bmp is a black/white bitmap. The black part will be the transparent part of the frame (shape). For buttons i can easily get the position and size and paint a white rectangle on black ground. But the picture is my problem.What in the initial picture is transparent should be black, all other colours should be white.