I need to implement an image processing function in VB without resorting to the inefficient GetPixel/SetPixel methods.
I prefer the LockBits/UnlockBits mechanism. But all examples I have found seem to require to copy the bitmap buffer to an intermediate byte array. I find this pretty inefficient and I would prefer to access the RGB bytes in the bitmap buffer directly.
Is there a simple way to do that ?