how can i add header to raw bitmap data?
-
hi all, i am writing a program to capture image from quickcam start from video for window. i have been already able to read a frame of data by capSetCallbackOnFrame(). however, i don't know how to add the bitmap header and other neccessaries to make standard bitmap file. would anyone help me? thanks, jim
-
hi all, i am writing a program to capture image from quickcam start from video for window. i have been already able to read a frame of data by capSetCallbackOnFrame(). however, i don't know how to add the bitmap header and other neccessaries to make standard bitmap file. would anyone help me? thanks, jim
You will need to get the type definitions that are defined in the Windows API from the APIViewer program and include them in your program. You will Need the BITMAPINFO structure. And the BITMAPINFOHEADER. Look at MSDN to see how to fill both of these structures.
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!