Shaped Forms - Transparency does not work (sometimes)

  • Thread starter Thread starter Andrew Wiles
  • Start date Start date
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
 
Some graphics cards, eg Vipers, don't properly support transparency at
32-bit color.
 
Back
Top