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 ?
我有一段代码从相机中检索图像并将它们存储在一个结构中。该结构提供指向图像的第一个像素的指针以及图像尺寸,其宽度和高度。我的问题是:如何将存储在结构中的图像保存在一个说明.jpg或.png文件中以进行显示和处理?
Thanks in advance !
提前致谢 !
1 个解决方案
#1
0
You can integrate the libjpeg or libpng freewares, which are the most complete, but be ready for hard work.
您可以集成libjpeg或libpng免费软件,这些软件是最完整的,但可以为辛勤工作做好准备。
#1
0
You can integrate the libjpeg or libpng freewares, which are the most complete, but be ready for hard work.
您可以集成libjpeg或libpng免费软件,这些软件是最完整的,但可以为辛勤工作做好准备。