Transparent bitmap(image) in windows!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SMALLp

    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.ScrolledPane l 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!
  • SMALLp

    #2
    Re: Transparent bitmap(image) in windows!

    this is code that adds image:

    <CODE>
    kartaGif = wx.Image("slike/karta.gif", wx.BITMAP_TYPE_ GIF)
    kartaGif.Rescal e(self.sizeX, self.sizeY)
    kartaGif = wx.BitmapFromIm age(kartaGif)
    mask = wx.Mask(kartaGi f, wx.WHITE)
    kartaGif.SetMas k(mask)
    self.karta = wx.StaticBitmap (self.mPanel, -1, kartaGif, (10, 10),
    (kartaGif.GetWi dth(), kartaGif.GetHei ght()))
    self.karta.Bind (wx.EVT_LEFT_DO WN, 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.ScrolledPane l 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!

    Comment

    Working...