Dave's Brain

Browse - programming tips - win32 displaying a bitmap with alpha channel

Date: 2003Oct2
Platform: win32

Q. How do I display a bitmap semi-transparently.  BitBlt()'s
SRCAND raster-operation almost works but it blurs the image.

A. Use AlphaBlend() instead of BitBlt()

AlphaBlend() and BitBlt() are part of the old GDI interface.
You might want to check out the newer GDI+ interface.
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Advertisements: