A
Allan
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
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