Bitmap Per-Pixel Manipulation

snarfblam

Mega-Ultra Chicken
Joined
Jun 10, 2003
Messages
1,832
Location
USA
User Rank
*Expert*
A few people have asked about bitmap manipulation recently. The biggest problem with GDI+ is that it can be pretty slow, especially on color-based per-pixel operations, since the only easy means of doing this is with the GetPixel/SetPixel function pair, which is slow

This tutorial explains how to lock bitmaps and more directly access the data to give your app a huge performance boost. Code examples and samples are given in C#, but a language-neutral approach was taken (no pointers) so that the code can easily be converted to VB or C++ and is verifiable by the runtime.

http://ilab.ahemm.org/tutBitmap.html

Comments are welcome, here or by e-mail. Enjoy. Or dont. Whatever.
 
Back
Top