#include "pixmap.h"
void MyPixmap::paintEvent( QPaintEvent * )
{
paint = new QPainter;
// pixmap.load("./m_vedio.png");
pixmap.load("./002.png");
paint->begin( this );
paint->drawPixmap(0,0,pixmap);
paint->translate(80,80);//gai bian yuan dian
paint->scale(2,2);//2 times bigger than before
paint->drawPixmap(0,0,pixmap);
paint->translate(100,0);
paint->rotate(-30);
paint->scale(0.5,0.5);
paint->drawPixmap(0,0,pixmap);
paint->end();
}
MyPixmap::MyPixmap()
{
setGeometry(100,100,400,400);
}
QT 图像QPixmap处理入门最好的例子
4星 · 超过85%的资源 需积分: 50 126 浏览量
2010-08-02
16:40:11
上传
评论 2
收藏 639KB RAR 举报
Season
- 粉丝: 209
- 资源: 102
最新资源
- 2023-04-06-项目笔记 - 第一百十五阶段 - 4.4.2.113全局变量的作用域-113 -2024.04.26
- 2023-04-06-项目笔记 - 第一百十五阶段 - 4.4.2.113全局变量的作用域-113 -2024.04.26
- htmlzwbjq_downyi.com.zip
- 无头单向非循环链表的实现(Test.c)
- 无头单向非循环链表的实现(SList.c)
- 浏览器重定向插件更新文件
- SSA-BP麻雀算法优化BP神经网络多特征分类预测(Matlab实现完整源码和数据)
- 粒子群算法优化BP神经网络PSO-BP的MATLAB代码(数值预测)
- 基于Springboot的一起看书平台.zip
- 无头单向非循环链表的实现(SList.h)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
- 3
前往页