470,631 Members | 1,622 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

Transparent bitmap(image) in windows!

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
1 2199
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.

Similar topics

reply views Thread by gana | last post: by
40 posts views Thread by Geoff Jones | last post: by
1 post views Thread by makdtripper | last post: by
2 posts views Thread by ajay_itbhu | last post: by
1 post views Thread by icepick72 | last post: by
1 post views Thread by swetha | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.