Sciter返回json

sciter::value arr[200];
	for (int i = 0; i < (int)m_fileList.size(); i++)
	{
		cv::Mat img = cv::imread(m_fileList[i].GetBuffer());
		int imgWidth = img.cols;
		int imgHeight = img.rows;
		sciter::value item[3];
		item[0] = sciter::value(imgWidth);
		item[1] = sciter::value(imgHeight);
		arr[i] = sciter::value(item, 2);
	}
	return sciter::value(arr,m_fileList.size());

  

posted @ 2017-03-29 16:40  一样菜  阅读(468)  评论(0编辑  收藏  举报