Hi ALL !!!
Last 2 days I'm struggling to save the bmp on the file.The main problem with my code is when I use DIBSECTION structure to get the values of the bmp structures the value obtained are correct but when I use BITMAPINFO structure the value are incorrect. I am refferencing DIBLLOKEX code which is on codeguru site for saving the bmp. Every other things are proper(size, height, width of the saved bmp) except that when i open this saved file it shows only a block rectangle of the same size that of the bmp which i saved.
I guess this is because the bit values are not correctly stored. Can anybody tell me how to get the bit values from the DIBSECTION structure? I've tried "GetBitmapBits" API but still giving the same problem.
The bitmap is 256 bits.
Thanks in advance