Shaped Forms - Transparency does not work (sometimes)

A

Andrew Wiles

Hi

I posted the basis of this problem a few days ago with no response but now
have some new informationthat may hopefully trigger someones
memory/interest.

If I set the BackgroundImage attribute for a form to a bitmap and the
TransparencyKey property to one of the colors in the form (in my case red
but this is irrelevent) I am getting variable results on different machines
as to whether the transparency works.

I have tracked this down as far as the following

If the display properties for the monitor are set to Highest (32 bit) on the
problem machine the transparency DOES NOT work
If the display properties for the monitor are set to Medium (16 bit) on the
problem machine the transparency DOES work

On other machines transparency is working irrespective of the display
properties.

Does anyone out there have any idea what might be going on?

BTW: Extracting the color for the TransparencyKey property directly from the
image using the GetPixel() function does not help.

Thanks in advance
 
J

Justin Rogers

Some graphics cards, eg Vipers, don't properly support transparency at
32-bit color.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top