By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,183 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

Transparent bitmap(image) in windows!

P: n/a
Hello everyone!

First I want to apologize for asking question about wxPython on this group.

I'm doing project that uses wx.ScrolledPanel few wx.Bitmap on it. It all
looks wonderful on Ubuntu and very very bad on windows because images
aren't transparent. As a found out it is problem that windows drowns
each image in separate window (or something like that)

I'm looking for best and easiest solution for this problem. I found
something to bind PAINT event to empty function but it doesn't work
because of scrolled panel.

Please help!

Thanks!
Apr 5 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
this is code that adds image:

<CODE>
kartaGif = wx.Image("slike/karta.gif", wx.BITMAP_TYPE_GIF)
kartaGif.Rescale(self.sizeX, self.sizeY)
kartaGif = wx.BitmapFromImage(kartaGif)
mask = wx.Mask(kartaGif, wx.WHITE)
kartaGif.SetMask(mask)
self.karta = wx.StaticBitmap(self.mPanel, -1, kartaGif, (10, 10),
(kartaGif.GetWidth(), kartaGif.GetHeight()))
self.karta.Bind(wx.EVT_LEFT_DOWN, self.getPos)
</CODE>
SMALLp wrote:
Hello everyone!

First I want to apologize for asking question about wxPython on this group.

I'm doing project that uses wx.ScrolledPanel few wx.Bitmap on it. It all
looks wonderful on Ubuntu and very very bad on windows because images
aren't transparent. As a found out it is problem that windows drowns
each image in separate window (or something like that)

I'm looking for best and easiest solution for this problem. I found
something to bind PAINT event to empty function but it doesn't work
because of scrolled panel.

Please help!

Thanks!
Apr 5 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.