I'm working on image recognition which needs to be fast. From what I know the speed of using a memory stream is much faster than using .GetPixel for bitmaps

But when I use the memory stream I'm getting different results. I'm sure it's to do with how I'm creating and reading the stream. Can anyone assist with the following code:

Code:
Private Sub ScanImageShape(ByRef bMap As Bitmap)
        Dim lOffset As Long     'The
...