当前位置:网站首页>QT display RGB data
QT display RGB data
2022-06-24 23:35:00 【mialo163】
design sketch

The procedure is as follows
void MainWindow::Show_RGB(const uchar *data,uchar Per_port_number,uchar frame_len)//data Frame array
{
QImage image( data , 335 , frame_len ,1005, QImage::Format_RGB888);//data Array //355 Width //frame_len Height // Each row 1005 Number of bytes // Format
QMatrix matrix;
matrix.rotate(-90.0);// rotate -90 degree
image = image.transformed(matrix,Qt::FastTransformation);
QPixmap pixmap2=QPixmap::fromImage(image);
ui->label_9->setAutoFillBackground(true);
pixmap2=pixmap2.scaled(ui->label_9->size(), Qt::KeepAspectRatio);// The adaptive / In equal proportion
ui->label_9->setStyleSheet("background: black;"); // Label background
ui->label_9->setAlignment(Qt::AlignCenter); // picture centering
ui->label_9->setPixmap(pixmap2);
}
边栏推荐
- 7-5 最大子矩阵和问题
- Annual salary of millions, 7 years of testing experience: stay at a fairly good track, accumulate slowly, wait for the wind to come
- Morris traversal
- R language uses GLM function to build Poisson log linear regression model, processes three-dimensional contingency table data to build saturation model, uses summary function to obtain model summary s
- Morris traverse
- Ganglia 的安装与部署
- 7-2 construction of binary tree by post order + middle order sequence
- 二分查找数组下标
- 今天睡眠质量记录79分
- 去处电脑桌面小箭头
猜你喜欢

Actipro WPF Controls 2022.1.2
![[basic knowledge] ~ half adder & full adder](/img/06/7f1ede65dca527c8630285b587a4ba.png)
[basic knowledge] ~ half adder & full adder
![[JS] - [tree] - learning notes](/img/62/de4fa2a7c5e52c461b8be4a884a395.png)
[JS] - [tree] - learning notes

一文理解OpenStack网络

年薪百万,7年测试经验:守在一个还算不错的赛道,慢慢积累,等风来

都2022年了,你还不了解什么是性能测试?

Ningde times will increase RMB 45billion: Hillhouse subscribes RMB 3billion and Zeng Yuqun still controls 23% of the equity

无鸟用的SAP PA证书,刚入行的同行可以考一考

还在用 SimpleDateFormat 做时间格式化?小心项目崩掉

JS listens for page or element scroll events, scrolling to the bottom or top
随机推荐
Fibonacci
SimpleDateFormat 格式化和解析日期的具体类
都2022年了,你还不了解什么是性能测试?
Tomorrow is the PMP Exam (June 25). Have you understood all this?
Harmonyos accessing database instances (3) -- use ORM bee to test how good harmonyos is
中学校园IP网络广播系统解决方案-校园数字IP广播系统方案设计指南
OpenSSL SSL_ read: Connection was reset, errno 10054
#22Map介绍与API
Still using simpledateformat for time formatting? Be careful of project collapse
7-3 最大子段和
376. 机器任务
Websocket learning
Hydropower project construction scheme based on 3D GIS Development
明天就是PMP考试了(6月25日),这些大家都了解了吗?
Adding, deleting, querying and modifying MySQL tables
7-5 maximal submatrix sum problem
How to resolve the 35 year old crisis? Sharing of 20 years' technical experience of chief architect of Huawei cloud database
R语言dplyr包select函数将dataframe数据中的指定数据列移动到dataframe数据列中的第一列(首列)
[JS] - [array, stack, queue, linked list basics] - Notes
常用正则表达式