Home › Forums › TWAIN Classic › DIB HEADER
- This topic has 0 replies, 1 voice, and was last updated 15 years, 11 months ago by kazham.
- AuthorPosts
Hi!
I’m trying to retrieve an image from my web-cam and everything looks fine, but when I receive TWRC_XFERDONE I get strange DIB header. As I understand, actual data of any DIB picture must be preceded by BITMAPINFO structure, which include BITMAPINFOHEADER structure. So, when I get TWRC_XFERDONE I look at the biSize field of the BITMAPINFOHEADER structure and its value is near 174329, but it must be 40 bytes. Field biWidth must be 640 pixels, but it 0. Field biHeight must be 480 pixels, but it 234, and so on. I already tried almost everything, but nothing worked.
What am I doing wrong? TW_IMAGEINFO structure tells me that my image is 640x480x24bpp without any compression. How to find a pointer to actual image data?
Please, help!- AuthorPosts