VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Per Pixel Transparency for Your Forms

by Apeiron (6 Submissions)
Category: Graphics
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (23 Votes)

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

Download Per Pixel Transparency for Your Forms

Download Per Pixel Transparency for Your Forms (37 KB)

Per Pixel Transparency for Your Forms Comments

No comments have been posted about Per Pixel Transparency for Your Forms. Why not be the first to post a comment about Per Pixel Transparency for Your Forms.

Post your comment

Subject:
Message:
0/1000 characters