Hi xpi0t0s,

Thanks for the reply. You say
Quote:
It's looping from data to data+WIDTH*HEIGHT filling the memory with fillValue
. Does that mean the code could be written as
Code:
for ( long imageSize = WIDTH * HEIGHT; imageSize > 0; --imageSize) 		{ 			
    *(data[imageSize]) = (uint8) fillValue; 		
}
and it would do the same thing? I'm still a little uncomfortable on what the ++ operator does as I thought it incremented the value of a variable by 1.

Also would you be able to explain how I would go about getting the pixel intensity values out of the pointer? or would this require more knowledge of the image's data format?

Thank
T