Jump to content
  • Advertisement
Sign in to follow this  

IPicture transparency problem

This topic is 4846 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have a Win32 project that uses the IPicture class. Here is how I load the picture: OleLoadPicturePath (path, 0, 0, 0x00ffffff, IID_IPicture, (LPVOID *) &pic); everything is fine accept this: the 4th parameter in that function is the color that should be transparent when rendering but it doesn't work. I have a totally white picture and still it draws it. I read in MSDN that only Metafiles and icons can be transparent but even when i made an icon picture it still wasn't transparent. I also confirmed that the picture had the transparent attribute using pic->Get_Attributes (); 1) Why don't even the icons work? 2) Isn't there a way to use jpeg or bmp as transparent too? 3) How at all can I draw fast on the window in a transparent way without PutPixel. BitBlt doesn't have an option to draw transparent. But for example TextOut can draw text in a transparent way if i call SetBkMode (hdcMem, TRANSPARENT); If BitBlt automatically draws transparent after I called that function, how to say which color is transparent?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!