@15:28, the order of bits... it is called big-endian. multi-byte numbers may have endian-ness. In little-endian, you keep the natural bit order as it is. If it uses the big-endian scheme, you have to re-order the bits. Separate/break the bits into 8-bit chunks (if you use the hex digit format, then into 2-hex-digit chunks), and then reverse the order. So, 4A53FF3C ==> 4A 53 FF 3C ==> 3C FF 53 4A; and 90DC4200 ==> 0042DC90 = 42DC90; and so on.
thks for very detail explaination. But i think one should change that the header file isn't always 54. We have two types of headers, one is bitmap file header, another is DIB header. Normally, bitmap file header is always 14 bytes. You can see totally offset to pixel data is line "36 00 00 00", it means exactly 54 bytes for header. and the next line "28 00 00 00", it means DIB header is 40 bytes. Total header = offset to pixel data = bitmap file header + DIB header = 14 + 40 =54. My comment is just help someone confuse where you did get the number "54". But anyway, your explaination is very helpful. thanks a lot.
muy interesante y si solo quieres leer el archivo bmp e imprimirlo en pantalla de preferencia en 256 colores gracias, sera que puedes ayudarme con un codigo simple
This video is very underrated. The best bmp guide I have ever seen
truth
i searched for so long for exactly this kind of tutorial and you just pop up on my recommendation THANK YOU btw I love your Miku 💙
@15:28, the order of bits... it is called big-endian. multi-byte numbers may have endian-ness. In little-endian, you keep the natural bit order as it is. If it uses the big-endian scheme, you have to re-order the bits. Separate/break the bits into 8-bit chunks (if you use the hex digit format, then into 2-hex-digit chunks), and then reverse the order. So, 4A53FF3C ==> 4A 53 FF 3C ==> 3C FF 53 4A; and 90DC4200 ==> 0042DC90 = 42DC90; and so on.
thks for very detail explaination. But i think one should change that the header file isn't always 54. We have two types of headers, one is bitmap file header, another is DIB header. Normally, bitmap file header is always 14 bytes. You can see totally offset to pixel data is line "36 00 00 00", it means exactly 54 bytes for header. and the next line "28 00 00 00", it means DIB header is 40 bytes. Total header = offset to pixel data = bitmap file header + DIB header = 14 + 40 =54.
My comment is just help someone confuse where you did get the number "54". But anyway, your explaination is very helpful. thanks a lot.
That's a big miku
Amazing!
thanks for this video, the best explaination i've seen so far
well explained, thanks!
thx mate.
ty bb
muy interesante y si solo quieres leer el archivo bmp e imprimirlo en pantalla de preferencia en 256 colores gracias, sera que puedes ayudarme con un codigo simple
Which programm do you use to see the image in hex?
You can use any hex editor