View Full Version : MV Image File Renderer

June 21, 2011, 17:32:06
Hello I've a new question about the grabbers. This time it is about MV Image File Renderer.

I'm writing with the VS 2005 C#

int width, height, bpp, size, pData;
m_ImageGrabberList[i].GetCurrentBitmap(out width, out height, out bpp, out size, out pData);

I put a breakpoint and watch these variables and I can see the correct width, height, bitsperpixel and size, but the pointer to the data is always zero.

What can I do?

Thanks for your time!

Marc Cymontkowski
June 27, 2011, 11:16:34
The call expects a pointer to a preallocated buffer, which will be filled with the image data. If you call the method with a NULL pointer, the call returns the properties of the image, so you can calculate the minimum size of the buffer.

I hope this helps!