|Layered Windows Demo.
This demo uses the Win32 layered windows API to create a non-rectangular per pixel alpha blended window. The demo uses a 32-bit TGA image with an embedded alpha mask for the shape of the window. This demo is intended to introduce you to the layered windows API. The next demos in this series will explore using OpenGL and Direct3D with the layered windows API.
1. This demo requires Windows 2000, XP, or higher to run. The minimum supported operating system for the layered windows API is Windows 2000.
2. This demo requires the Visual C++ 2010 Library Runtimes. Download instructions can be found here.
Download executable, source, and Visual C++ 2010 solution files.
10 July 2010.
Added missing .vcxproj.filters file to the project.
12 June 2010.
Updated solution to Microsoft Visual Studio 2010.
2 February 2008.
Updated solution to Microsoft Visual Studio 2008.
21 October 2006.
Updated the ImagePreMultAlpha() function with a performance optimization submitted by Jordan Bayliss-McCulloch.
22 March 2006.
Fixed a bug in the ImagePreMultAlpha() function where the pixels were being pre-multiplied by the incorrect alpha channel value. This was causing pixels with alpha channel values in the range 1 to 254 (inclusive) to become black. Thanks goes to Travis Cobbs for spotting this bug.