I have a piece of code that retrieves images from a camera and store them in a structure. The structure provides the pointer to the first pixel of the image as well as the image dimension, its width and height. My question is: how can I save the image stored in the structure in a say .jpg or .png file to be displayed and processed ?
Thanks in advance !
You can integrate the libjpeg or libpng freewares, which are the most complete, but be ready for hard work.