VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Using GetBitmapBits and SetBitmapBits

by ¿?¿? (5 Submissions)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (8 Votes)

This example program shows you how to use GetBitmapBits and SetBitmapBits for super fast pixel manipulation. Please note that I chose to turn a picture negative to show you the basics of these 2 APIs and that there are faster ways to turn a picture negative. Such as using BitBlt, but BitBlt is not capable of manipulating individual pixels, it just transfers a block of picture bits with various options. Please see XasanSoft's submission using BitBlt to turn a picture negative. This could also be used for changing a pictures brightness level or Red, Green and Blue tints. The posibilites are endless! With this example, you should never have to use GetPixel and SetPixel again for pixel manipulation. This is only slightly more complicated than them and 10 times faster. Enjoy the code!

API Declarations
GetBitmapBits, SetBitmapBits and a few others.

Rate Using GetBitmapBits and SetBitmapBits

Download Using GetBitmapBits and SetBitmapBits

Download Using GetBitmapBits and SetBitmapBits (65 KB)

Using GetBitmapBits and SetBitmapBits Comments

No comments have been posted about Using GetBitmapBits and SetBitmapBits. Why not be the first to post a comment about Using GetBitmapBits and SetBitmapBits.

Post your comment

Subject:
Message:
0/1000 characters