Advertisement
C_Volume2 Graphics #68818

Per Pixel Transparency for Your Forms

This project uses GDI+ to load a transparent .png and using UpdateLayeredwindows it displays the form using the png as the windows drawing source. Just try it, it's easier to see than describe. This can easily create some of the nicest forms that you are able to make. No more regions no more combining and xor'ing, using this you have a perfect antialiased non-rectangular form that you can see whats underneath through it. It's like regions supercharged. Though this example is pretty simple, I haven't seen this done anywhere on the net. I found one example in C++ using an outside library to load the png but using GDI+ is easier. I made this example without anything except the basic code to load the png and display the form. It's always been easier (for me) to see an example when there isn't anything extra to dig through. As far as I know, GDI+ comes with windows 2000 and XP which fortunately is also the only OS's that support UpdateLayeredwindows. Have fun with it. Comments and Votes welcome.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine