0
#include "stdafx.h"
#include <boost/gil/gil_all.hpp>
#include <boost/gil/extension/io/png_io.hpp>
namespace gil = boost::gil;
int _tmain(int argc, _TCHAR* argv[])
{
gil::gray8_image_t input;
gil::png_read_image("..\\resources\\frame10.png",input);
return 0;
}
在主程序中,我想讀取一個PNG圖像。調試沒有問題。但是當我運行 的可執行文件時,它崩潰了。什麼原因?謝謝!如何使用libpng讀取png圖像?