I don't know how C # System.IO.File.ReadAllBytes is arranged.
// Get byte sequence
byte [] byteimagedata = System.IO.File.ReadAllBytes (file name);

got an array of image bytes.

But I don't know the law of the array.
Go from the top left pixel to the top right in RGBA order,
Is it an array that goes down one line and goes to the upper right again?


Because there was not enough explanation, I will add it.

foreach (var i in byteimagedata)
    Console.WriteLine (i);
I looked at the array in

, but I didn't understand the rules in line.