I'm creating an ActiveX control that will display pictures and make them transparent by specifying the transparent color. This is similar to .GIF's where you specify the transparent color and it's thereafter transparent.
Is there way to set the transparent color of an image so that the image is transparent? For example, if I put a BITMAP (.BMP) image with a black background into a PictureBox control... is there a way to set the transparent color of the picturebox to 0 so that the black background now is transparent and it is thereafter possible to see objects that are under the PictureBox in the areas that were black?
The way I'd like to use this is in an ActiveX control, set the BackStyle property of the UserControl of the ActiveX to Transparent, then set the transparent color of the UserControl to 0 so that the picture is the only thing that is visible. Or perhaps put a PictureBox control on the UserControl of the ActiveX... set the UserControl to Transparent and them make the transparent color of the PictureBox 0 so it's transparent.
Maybe I'm barking up the wrong tree as far as how to go about this, these are just ideas of how to make a picture transparent. Can anyone help me with this one?