Unsigned char*格式彩色图转换为QImage格式
最近用QT显示图像,内存中的图像数据是以GBR顺序放在一个Unsigned char*数组中,需要将数组中数据转换成QImage格式unsigned char *pImage;QImage img = QImage(width, height, QImage::Format_RGB32);for(int i = 0; i<height; i++){int t = i*w...
原创
2020-03-05 10:59:06 ·
1875 阅读 ·
0 评论