VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Using 32pp GDI Bitmaps and UpdateLayeredWindow from Visual Basic

by Xael (1 Submission)
Category: Graphics
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

This article has a two-fold purpose; One to show you an example of using the UpdateLayeredWindow function from Visual Basic. The other is to give you an example of using 32bpp bitmaps via the Windows GDI, which allows you to use per-pixel alpha blending for eye-catching effects..
This sample is based around a simple non-moveable form, that is semi-transparent (that is, you can see the windows desktop behind it). Go on, download, and browse through the code to get an understanding of the concepts presented. Hope you guys (and Gals) like it. Once again I must give all thanks to God my Father for guiding me throughout the entire development. Oh well, later.

Assumes
Remember, this code will only work under Windows 2000, and higher, although the code used to generate the 32bit bitmaps and perform alpha blending will also work under Windows 98. BTW. You may want to compile the application before running it, in order to obtain a speed increate (but I'm sure you already knew that :) )

Rate Using 32pp GDI Bitmaps and UpdateLayeredWindow from Visual Basic

Download Using 32pp GDI Bitmaps and UpdateLayeredWindow from Visual Basic

Download Using 32pp GDI Bitmaps and UpdateLayeredWindow from Visual Basic (67 KB)

Using 32pp GDI Bitmaps and UpdateLayeredWindow from Visual Basic Comments

No comments have been posted about Using 32pp GDI Bitmaps and UpdateLayeredWindow from Visual Basic. Why not be the first to post a comment about Using 32pp GDI Bitmaps and UpdateLayeredWindow from Visual Basic.

Post your comment

Subject:
Message:
0/1000 characters