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());