Subject: | BMP file header have the data size always to 0 |
Dear Sir,
I use IMAGER to produce some BMP files, for a specific use i have needed
the 'data size' information (and not the file size) but the BMP
generated, with IMAGER, have this information always to '0'.
I have made some research into the sources files of the 0.65 version
It seems that the problem is located into the write_bmphead function.
You will find all the information below.
Distribution IMAGER-0.65
file: bmp.c
Function :
int write_bmphead(io_glue *ig, i_img *im, int bit_count, int data_size)
Line 368 of file:
if (!write_packed(ig, "CCVvvVVVVvvVVVVVV", 'B', 'M', data_size+offset,
0, 0, offset, INFOHEAD_SIZE, im->xsize, im->ysize, 1,
bit_count, BI_RGB, 0, (int)(xres+0.5), (int)(yres+0.5),
colors_used, colors_used)){
To have a correct information into the image header section, after
'BI_RGB' the value must be 'data_size' and not '0'
Yours faithfully,
Laurent LE HELLOCO