当前位置:网站首页>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);
}
边栏推荐
- Morris traverse
- 我的为人处事真的有问题吗?
- throttle-debounce.js:一个小型的防抖节流函数库
- R语言dplyr包group_by函数和summarise_at函数计算dataframe计算不同分组的计数个数和均值(Summarise Data by Categorical Variable)
- 年薪百万,7年测试经验:守在一个还算不错的赛道,慢慢积累,等风来
- [basic knowledge] ~ half adder & full adder
- 7-3 最大子段和
- Spark's wide dependence and narrow dependence yyds dry goods inventory
- Binary lookup array subscript
- go 语言指针,值引用和指针引用
猜你喜欢

国内有哪些好的智能家居品牌支持homekit?

RT thread uses RT kprintf

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

【UVM入门 ===> Episode_8 】~ Sequence 和 Sequencer、Sequence 层次化
![[JS] - [array application] - learning notes](/img/8a/808fde0cc86e0ec5e1f5558ba196b4.png)
[JS] - [array application] - learning notes

Actipro WPF Controls 2022.1.2
HMS core discovery Episode 13 live broadcast Preview - building the real world in mobile games
![[JS] - [array, Stack, queue, Link List basis] - Notes](/img/c6/a1bd3b8ef6476d7d549abcb442949a.png)
[JS] - [array, Stack, queue, Link List basis] - Notes

抖音实战~实现App端视频上传与发布

Ganglia 的安装与部署
随机推荐
当初吃土建起来的“中台”,现在为啥不香了?
Volcano成Spark默认batch调度器
257. detention of offenders
Hyperledger Fabric 2. X dynamic update smart contract
我的为人处事真的有问题吗?
372. chessboard coverage
[JS] - [array, stack, queue, linked list basics] - Notes
Why is it that the "Zhongtai" that was originally eaten by civil engineering is no longer fragrant?
sql -CONVERT函数
基本数据类型
如何化解35岁危机?华为云数据库首席架构师20年技术经验分享
RT thread uses RT kprintf
MySQL semi sync replication
Helix distance of point
六大行数据治理现状盘点:治理架构、数据标准与数据中台(2022.04)
7-6 laying oil well pipeline
还在用 SimpleDateFormat 做时间格式化?小心项目崩掉
单调栈以及单调栈的应用
都2022年了,你还不了解什么是性能测试?
普通人的生活准则