My goal is to load an image as a bmp and get to its pixels. So what i
do is:
Bitmap::FromFile(<filename>); // i guess this loads the file as a bmp
LockBits(...); // this coppies the bitmap's bits into another buffer
//now i can use the pixels
Is there any way to avoid the extra copy at LockBits(which is
expensive)? I want direct access to the bits loaded from the file. Is
there any way to do this in mfc/.net?