简体   繁体   中英

Loading and saving to file an image from a raw data memory structure in c++

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 !

您可以集成最完整的libjpeg或libpng免费软件,但可以进行艰苦的工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM