Bitmap Per-Pixel Manipulation

snarfblam

Mega-Ultra Chicken
Staff member
Joined
Jun 10, 2003
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.
 

snarfblam

Mega-Ultra Chicken
Staff member
Joined
Jun 10, 2003
Location
USA
User Rank
*Expert*
  • Thread starter
  • Moderator
  • #2
Attached tutorial here because of hosting problems.
 

Attachments

  • BitmapTutorial.zip
    8.4 KB · Views: 21
Top