VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Per Pixel Transparency for Your Forms

Apeiron  (6 Submissions)   Graphics   VB Script   Intermediate   Wed 3rd February 2021

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.

API Declarations
Several

Rate Per Pixel Transparency for Your Forms (23(23 Vote))

Download Per Pixel Transparency for Your Forms

Per Pixel Transparency for Your Forms Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters