I am in the process of writing a data acquisition program in C++. In the process of gathering data I will receive a pointer to a 2D array containing image data. I'm assuming images are stored in memory in a standard way however, I've never dealt with something like this before. I need to be able to store the acquired images as, well, images. Once I have access to this image data how can I save it to a file it as a viewable image?