bmp file processing

502 Views Asked by At

can some help write a code in c to get 24 bit bmp pixel values into 2d array for processing of it thnx in advance

2

There are 2 best solutions below

1
On

This article details converting bitmaps into C arrays.

http://www.hackpadsoftware.com/projects/bmp_to_c_array.html

I wonder if you even bothered to google this, there were many different websites that talk about this and provide code.

0
On

The Wikipedia page about the BMP file format contains extensive information about the format, including the data structures for C/C++ to read it. That's a good starting point.