M
M
Magnus Keef2019-04-28 19:28:14
Node.js
Magnus Keef, 2019-04-28 19:28:14

How to read bmp file byte by byte?

I want to encode an image using the Huffman algorithm. For this purpose, you need to read the image matrix, apply the Huffman algorithm to it, change the image header by inserting an encoding table there and change the offset for the image accordingly. How to start? I don't understand how to read individual bytes of an image.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2019-04-28
@dimonchik2013

learning someone else's code helps a lot, no matter what language

H
h0w4rd, 2019-04-28
@h0w4rd

Read the specification, how it is stored there.
(sarcasm) And how to read byte by byte, you can open it in Sublume Text 3, good support for displaying in HEX form. (/sarcasm)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question