Re: Very Simple Webcam tool

new topic     » goto parent     » topic index » view thread      » older message » newer message

Alexander Toresson wrote:
> Yes, the length of the image data is 230400 bytes, which is 320 * 240 * 3, so
> it is
> (or should be) the raw image data!

Actually, the data returned, is the same data you would receive, if you did a
raw Peek of a hDIB memory allocation.  You should look into freeimage.ew, and
more specifically, CreateHBitmap(), for the way to load the data into a Win32
HDIB Compatable image, to draw to a window.  FreeImage returns the data in the
same format, of #RRGGBB * Height * Width, or is that #RRGGBB * Width * Height.
Can't remember which, but in either case, that is the method in which the data
should be relayed to you.

Mario Steele
http://enchantedblade.trilake.net
Attaining World Dominiation, one byte at a time...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu