Hi, the buffer you create with the IMAQ.DLL in C is actually a 1D array with all the data, starting with pixel (0,0) in Line 0, then line 1, then line 2, etc., so with the attributes you can figure out how many pixels per line and how many lines you have in your image as to build your 2D array if you wish. If not, just do the average with the 1D buffer that you already have. The buffer functions in IMAQ.DLL will give you the pointer to the buffer address, from there use your logic to create the 2D array if you decide to.
Good luck!
Nestor.
Nestor