一杯清酒邀明月
天下本无事,庸人扰之而烦耳。
1 QImage(uchar * data, int width, int height, Format format)
2 
3 QImage(const uchar * data, int width, int height, Format format)
4 
5 QImage(uchar * data, int width, int height, int bytesPerLine, Format format)
6 
7 QImage(const uchar * data, int width, int height, int bytesPerLine, Format format)
1 QImage Image; 
2 Image = QImage(uchar * data, width, height, QImage::Format_RGB888);

从构造函数可以得知:

  • 指向图像数据的uchar*型地址
  • 图像宽度
  • 图像高度
  • 图像格式或者是图像的每行字节数(通道*宽度)
posted on 2020-02-12 10:59  一杯清酒邀明月  阅读(1369)  评论(0编辑  收藏  举报