I am doing frame grabbing with the Matrox Imaging Library, and would like to know how to convert an image buffer to a monochrome pixel array. I can allocate the image to a user-defined buffer with MIL.MbufGet2D, but it's not obvious to me how to get pixel values for the buffer. I also know I can save the buffer as a .dcf file, but I don't see an easy way to convert that to a more workable form either.
