473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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 2350
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gana | last post by:
I'm converting an EMF to BMP. Image is coming properly except that background color of the bMP is set to black. I'm saving EMF to a stream and craeting BMP from stream. One more thing I tried is...
1
by: dcudev.lcr | last post by:
I am loading a 4X5 picturebox matrix using a bitmap file template. As each cell in the matrix is being loaded, I append a text string using the DrawString function to complete the cell's image. ...
1
by: Joseff | last post by:
I have this Bitmap object declared and outputted to the browswer this way: invoiceBMP.Save(Response.OutputStream, ImageFormat.Gif); However, the result is that the existing static controls of...
3
by: Niels Jensen | last post by:
I have a bitmap image that's around 640 x 480 pixels. I want to add some ..gif or .png files to the image before displaying it in my application. Is there a way of doing this? Cheers Niels
40
by: Geoff Jones | last post by:
Hi Can anybody help me with the following? It is driving me crazy!!! I'm trying to produce a non-rectangular form as follows: (1) Produce a bitmap e.g. gif, using paint shop pro 5. (2) The...
1
by: makdtripper | last post by:
I create a bitmap image. I can draw and save it successfulyl...i need to know how to resize the bitmap when i add more and more drawings...or how to add scroll bars to a large created bitmap. My...
2
by: ajay_itbhu | last post by:
Hi everyone, I want to read the pixel values of 2 similar images in bitmap format like 2 continuous frame of a video for calculating the median. But i dont know how to read the pixel values of...
0
by: SamSpide | last post by:
Hi all, I'm trying to place a semi-transparent image (i.e. an image with parts of it were drawn in transparent color) over a playing video, but can't seem to make it work. Instead of the...
1
by: icepick72 | last post by:
On an academic note, I want to copy a Graphic to an Image (Bitmap). I have the Graphic object but not the origin image from which it originates; this is because I'm overriding the PrintDocument...
1
by: swetha | last post by:
HI, I am very new to C++.Using C++ I am reading one bitmap image.Now,I am trying to zooming that image.Can any one tell me which function have to use for this.Or can any one send some sample code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.