VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Using GetBitmapBits and SetBitmapBits

¿?¿?  (5 Submissions)   Graphics   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

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 (8(8 Vote))

Download Using GetBitmapBits and SetBitmapBits

Using GetBitmapBits and SetBitmapBits Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters