setpixel and getpixel have nothing to do with reading bitmap files.
incase you want to access the bitmap data directly in order to manipulate it, and incase you need to do this alot and fast, you might want to consider unsafe code. there's an example for that
here.
WM_HOPETHISHELPS
-thomas woelfer
http://www.die.de/blog