Hello!
I try to read the data of a .bmp file. I'm not sure how to do it. I found some instructions in some other forum and I have completed a part of it:
I have checked it and it seems that this part works.Code:HANDLE bmp; DWORD size; DWORD error; DWORD byte_count; LPVOID data[10000]; int main() { bmp=CreateFile("test.bmp", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); size=GetFileSize(bmp, NULL); ReadFile(bmp, data, size, &byte_count, NULL); CloseHandle(bmp); }
The instructions i found say:
"and then just cast a pointer to the buffer to a BITMAPFILEHEADER and go from there."
I don't understand what should I do next.



LinkBack URL
About LinkBacks



