Re: Very Simple Webcam tool

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

Mario Steele wrote:
> 
> 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.
> 

I've got a pointer to a dib now. I wanted to look at that code to see how it
"registers" the dib to get a win32lib handle or whatever, but the only thing with
freeimage I can find in the archive is freedib, which includes freeimage.ew, but
that doesn't contain CreateHBitmap() or fiCreateHBitmap().
However, it contains fiCreateFIBitmap() and fiCreateDIB(). I've got no clue what
either of them do, and there are no docs covering them.

Regards, Alexander Toresson

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

Search



Quick Links

User menu

Not signed in.

Misc Menu