473,473 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Transparent Form with 2 PNG images with Alpha Channel

I've been trying to get this to work for days. I have a form which needs to
be transparent (only the form background). On the form there are two images
(32 bit PNGs) with alpha channel information, in one case the alpha
information is used to display a shadow, and the other has a shadow and a
few other things. One of these images will change on a random basis (every
five minutes or so) and the other is the background for display data.

If on the main form, I set the TransparencyKey and the Background color the
same, I can get the transparent form, but there is a problem with the
images. The alpha channel data (in this case the shadow), shows as the same
color as the TransparencyKey. I've tried the UpdateLayeredWindow (took care
of the alpha channel) but it seems only to work for a single image, i.e.
this API needs a single bitmap as a source, and once you use it, nothing
else can be done with the form. Alphablend doesn't seem to work, can't get
the background around the image to be transparent.

Has anyone any idea how to get this to work? Most examples I've seen use
updatelayeredwindow and only use a single image.

Thanks in advance
Nov 20 '05 #1
2 8554
Hi Allan,

I was away over the weekend. and nobody has picked up on your query. If
you could post a cut-down version of your project with the Form and the two or
three of your pngs, I'll have a play and we'll see if we can work this out
together?

Make it a zip so that I can just load and go. If it's big, you can post it
to me direct (but post a message here too so that I know to go and check the
mail - it's full of virus emails at the moment).

Regards,
Fergus
Nov 20 '05 #2
Hi Allan,

Your message has come in just as I'm tying up loose ends and going to bed.
I'll give it a look tomorrow. No promises - I'm no expert in this area. But
I'm curious and interested. :-)

Later Dude,
Fergus
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fearless Freep | last post by:
I know there's a PIL mailing list but I thought I would try the question here as well. I'm using PIL on Python 1.5.2 (stop laughing, it's what the ISP has for CGI and I don't have a choice) ...
3
by: Mr. x | last post by:
Hello, Does any bitmap picture has transparent color (by the left top dot of the bitmap - anything with the same color is a transparent color), or there is other thing I should declare in the...
0
by: Graphics_master | last post by:
Anyone know how to create a transparent splash screen similar to Photoshop, After Effects, or premiere. They have a wonderful transparent look. I realize that I can use the key color property of...
4
by: felix | last post by:
Hi, I tried google and searched the old posts -- with no success. Like a zillion of people before I have a problem when rendering transparent PNGs with GDI+ and the C# Graphics class. The image...
7
by: Peter Oliphant | last post by:
Using MakeTransparent one can supposedly turn a color used in a Bitmap to transparent. But, it looks to me like all it does it set these pixels to the color BackColor of the Control it's attached...
2
by: Todd H | last post by:
How would I create a 1x1 pixel transparent gif in memory? I don't want to load it from an existing file. Thanks, Todd
4
by: Chris | last post by:
Hello, I have two div's, div1 is a lot bigger and is the parent of div2, and div1 also has a background image. What I would like to do, is set a background color for the smaller nested div2,...
0
by: James Arnold | last post by:
I am trying to use a semi transparent PNG as the form background, allowing you to see through certain parts. The intention is similar to a skinnable form like launchy, with semi-transparent pixels...
9
by: Chuck Anderson | last post by:
Is it possible to overlay a transparent watermark on an image - dynamically? I'd like the result to look like this example: <http://www.cycletourist.com/temp/photo.php> That is a bit of...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.