No this is not how you get the pixel data (color information).
Compare it yourself with the color defined at each pixel by calling GetPixel(x,y)
Also you could compare with this method:
var pixels = new Color[img.Height*img.Width];
for (int row = 0; row < img.Height; row++)
{
for (int col = 0; col < img.Width; col++)
{
pixels[row + col] = img.GetPixel(col, row);
}
}
If you just want the byte data, use img.Save()
to save to a new MemoryStream
for example...