Hi All,
Can anyone point me in the right directions for copying or assigning an array in memory to an image? I’m reading an frame out of an AVI file using Microsoft’s vfw32.lib/vfw.h and the function that grabs the frame returns a pointer to a bitmap in memory, like this:
BYTE* pDIB = (BYTE*) AVIStreamGetFrame(pFrame, index);
And I need to transfer that information into an image. I have extracted the bitmap header and have a pointer to the first pixel, so I suppose I could iterate over each pixel and channel and populate the image by hand, but I imagine there is a better way.
Thanks,
Mark Sapp