Home>
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.
-
Answer # 1
Related articles
- c # - i don't know how to learn net framework
- c # - i don't know how to implement joystick
- c # - i don't know how to call aync/awit
- c # - i don't know how to define the condition for if
- javascript - i don't know how to break each output
- php - i don't know how to connect with mysql
- sql - i don't know how to output the whole
- c# - i don't know how to get the title with cefsharp
- html - i don't know how to study programming
- java - i don't know how to resolve the error
- i don't know how to use the new features of c ++ 20 with cmake
- python - i don't know how to use settingjson
- i don't know how to change the java formula
- javascript - i don't know how to get rakuten api json data
- php - i don't know how to get the characters from sql at the end at the login home page
- c++ - abc171e i don't know how to calculate xor
- c++ - i don't know how to make an operator for input
- utf-8 - i don't know how to install neologd
- mysql - i don't know how to access the database
- xcode - i don't know how to pass a value when tabbing
Related questions
- c # - i want to change the background color and text color of any day with the wpf calendar control
- [c #] i want to acquire the microphone volume in real time with naudio
- c # - how to specify the argument systemwindowsuielement as a string
- c # - i want to specify the event when the enter key is pressed in the textbox in the mvvm of wpf + livet
- c # - i want to display an image set in a two-dimensional array with wpf
- c # - i want to disable button when textbox is blank in reactiveproperty
- c # - read excell in thread
- c # - i can't bind using relativesource when i put contextmenu in between
- c # - it is displayed so that the window overlaps with webbrowser,
- c # - wpf listview checkbox i want to control the active state
There are various formats to say image files
For example, if it is a BMP file,
You can get explanations by going through the "bmp file format", but this doesn't seem to be something that you can understand simply by looking at the byte sequence.
If you are trying to read a non-BMP file, the format will change again.
In that case, why don't you go around with that model?