当前位置:网站首页>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);
}
边栏推荐
- Yyds dry goods inventory tells us 16 common usage scenarios of redis at one go
- Yyds dry goods counting uses xshell to implement agent function
- Redis source code analysis skip list
- 7-5 最大子矩阵和问题
- What good smart home brands in China support homekit?
- HarmonyOS访问数据库实例(3)--用ORM Bee测下HarmonyOS到底有多牛
- 7-2 solving the stock buying problem
- UNION ALL UNION FULL JOIN
- Binary lookup array subscript
- 379. 捉迷藏
猜你喜欢
Fibonacci
Morris遍曆
idea创建模块提示已存在
Jetpack Compose 最新进展
中学校园IP网络广播系统解决方案-校园数字IP广播系统方案设计指南
Huawei machine learning service speech recognition function enables applications to paint "sound" and color
Pseudo original intelligent rewriting API Baidu - good collection
Morris遍历
Latest development of jetpack compose
First person singular reading notes
随机推荐
js监听页面或元素scroll事件,滚动到底部或顶部
Record a Webflux application memory leak troubleshooting
当初吃土建起来的“中台”,现在为啥不香了?
抖音实战~项目关联UniCloud
From client to server
Whereabouts computer desktop small arrow
UNION ALL UNION FULL JOIN
378. Knight placement
基本数据类型
HMS core discovery Episode 13 live broadcast Preview - building the real world in mobile games
RT thread uses RT kprintf
R language uses the aggregate function of epidisplay package to split numerical variables into different subsets based on factor variables, calculate the summary statistics of each subset, and customi
[introduction to UVM== > episode_8] ~ sequence and sequencer, sequence hierarchy
The dplyr package select function of R language moves the specified data column in the dataframe data to the first column (the first column) in the dataframe data column
The R language uses the matchit package for propensity matching analysis and match The data function constructs the matched sample set, and judges the balance of all covariates in the sample after the
golang convert map to json string
[JS] - [array application] - learning notes
Inventory of data governance status of six major banks: governance architecture, data standards and data middle office (April 2022)
明天就是PMP考试了(6月25日),这些大家都了解了吗?
HarmonyOS访问数据库实例(3)--用ORM Bee测下HarmonyOS到底有多牛