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.

Add a comment

Sign in to add a comment
Copyright © 2008, dave - Code on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License.