Dave's Brain

Browse - Programming Tips - How do I display a bitmap semi-transparently. BitBlt()'s

Date: 2003Oct2
Platform: win32
Library: GDI

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-2017, 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.