[RESOLVED] Image Question

Started by
3 comments, last by GetWindowRect 18 years, 7 months ago
Is it possibly to display an image with transparency %. For example, an image with 50% transparency, you would be able to see what it behind the image as well as the image on top, 100% and you could not see the image at all and 0% you could not se behind the image? I am pretty sure it is called transparency, but it might have another term. On google all I get is transparent gif's and blending a certain color type thing. If there is a way could someone point me in the right direction to figure it out? Thanks a bunch.
Advertisement
Yes, it's possible. Usually it's called alpha values for the level of transparency/opaqueness. What API or library are you using for your graphics?
To be honest I am not sure. I am just using the BITMAP type to open an image and bitblt it to the screen as of now. That is probably GDI but I have no idea.
If you're using GDI, then try looking up the AlphaBlend() function.
Thank you very much for your quick reply. I will look into that right now.

This topic is closed to new replies.

Advertisement