Floating Images
-
Hello everyone, I have a form and a picture, and i want the picture to "hang" off of the form. I have tried making the background of the picture transparent, and making a background with a special color for transparency, but the image has a shadow and the color continues to show up in the shadow when it is run. What should I do differently to get this to work? Thanks.
-
Hello everyone, I have a form and a picture, and i want the picture to "hang" off of the form. I have tried making the background of the picture transparent, and making a background with a special color for transparency, but the image has a shadow and the color continues to show up in the shadow when it is run. What should I do differently to get this to work? Thanks.
The image is probably a jpeg. JPEG images use lossy compression, so the color that was solid, is now a range of colors in that general vicinity. Draw the image yourself on your background, in a paint event handler. Use the ImageAttributes class as a parameter when drawing the image, and you can specify a range of colors to make transparent.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog