VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Real Time Alpha Blending In Pure VB

by KRADLE OF FILTH (3 Submissions)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (9 Votes)

If you want to do real time alpha blending in pure VB without API's, DirectX, OpenGL, etc, then this is for you. It uses a few Look Up Tables (LUT's) that pre calculates all the math done and gets the RGB values per pixel from both pictures. The computer will then already know every single combination. That way no math is done at all!!! It's so fast that its as fast as the SetPixel API. LUT's are extremly useful to prevent slowdown. So if you are interested in speed for your applications and/or alpha blending, then this is for you. I have the slow method done first, and when you click the Use Look Up Tables button, it will then be warp speed!

Assumes
I couldn't really obtain Point(X,Y) in the beginning of the program cause it always read 16777215 making it seem Picture1 was all white. So it's done in the middle of run time instead, which is why the slow method is shown first. If anyone can pull that off when first running the program, please let me know.

Rate Real Time Alpha Blending In Pure VB

Download Real Time Alpha Blending In Pure VB

Download Real Time Alpha Blending In Pure VB (49 KB)

Real Time Alpha Blending In Pure VB Comments

No comments have been posted about Real Time Alpha Blending In Pure VB. Why not be the first to post a comment about Real Time Alpha Blending In Pure VB.

Post your comment

Subject:
Message:
0/1000 characters