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*型地址
  • 图像宽度
  • 图像高度
  • 图像格式或者是图像的每行字节数(通道*宽度)

相关文章:

  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
猜你喜欢
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案