-
使用Qt处理图片资源
Use Qt in image development.
QPixmap largepixmap;
QPixmap smallpixmap;
QPixmap maskpixmap;
QPixmap zoompixmap;
QPoint offset(0,0);
QPoint dragpos(150,150);
QPoint set(90,50);
//加载图片:
largepixmap.load("ImagesMainGui.png");
smallpixmap = largepixmap.scaled(largepixmap.size()/1.2);
maskpixmap.load("ImagesMainGui.png");
//绘制底层图片(非放大镜区域图案):
QPainter painter(this);
painter.drawPixmap(offset,smallpixmap);
painter.end();
//计算放大区域圆形的半径及所占矩形面积
int dim = qMin(width(), height());
int magnifierSize = dim * 5 / 6;
int radius = magnifierSize / 2;
int ring = radius - 15;
QSize box = QSize(magnifierSize, magnifierSize);
- 2022-02-09 22:59:08下载
- 积分:1
-
MFC进度条重绘代码
对MFC进度条进行重绘,实现了进度条颜色和背景颜色的重绘,用户可以根据自己的需求改变进度条的颜色,且进度条颜色随进度的变化而变化
- 2022-03-22 02:30:07下载
- 积分:1
-
C#socket编程
服务器端:主要有监听客户端连接信息listen()方法,发送数据包到客户端Send()方法、接受客户端发送的消息Receieve()方法,均采用异步回调的方式客户端:连接到服务器端、发送数据包到服务器端Send()方法、接受消息Receieve()方法,其中要区分客户端发来的消息与服务器发来的消息
- 2022-12-27 01:15:03下载
- 积分:1
-
A GUI file that permit play wav files, but with someones tips such as echo, reve...
A GUI file that permit play wav files, but with someones tips such as echo, reverse function, player mono function, fast play, slow play,etc-A GUI file that permit play wav files, but with someones tips such as echo, reverse function, player mono function, fast play, slow play,etc
- 2022-09-06 09:05:03下载
- 积分:1
-
delphi开发简单实例,对于毕设同学具有较好的参考价值。是实时采集系统的典型设计...
delphi开发简单实例,对于毕设同学具有较好的参考价值。是实时采集系统的典型设计-develop simple example, BI-based students have good reference value. Real-Time Data Acquisition System is a classic design
- 2022-12-24 17:45:04下载
- 积分:1
-
改进的xp的explorer左侧导航栏,每栏内容可以随意修改,实现单排与多排,相应更改栏目标题功能。...
改进的xp的explorer左侧导航栏,每栏内容可以随意修改,实现单排与多排,相应更改栏目标题功能。-Improved xp left navigation bar of the explorer, the contents of each column can be modified to achieve single-row and multi-row, the corresponding function to change the column headings.
- 2022-03-11 21:06:05下载
- 积分:1
-
procedures for the use of the c# using the access path method of circular forms
本程序利用c#实现用获取路径的方法得到圆形窗体-procedures for the use of the c# using the access path method of circular forms
- 2022-07-11 19:05:53下载
- 积分:1
-
这是一个用mfc编写的程序,实现了运动估计的算法功能,请大家提出批评意见...
这是一个用mfc编写的程序,实现了运动估计的算法功能,请大家提出批评意见-This is a procedure used to prepare mfc, realize the motion estimation algorithm feature, raised U.S. criticism
- 2022-01-25 17:10:28下载
- 积分:1
-
XPControls控件包。是一个用于DELPHI的界面开发换肤工具包,
XPControls控件包。是一个用于DELPHI的界面开发换肤工具包,-XPControls control packets. Delphi is one for the Eurocargo interface development tool kit
- 2023-06-03 23:55:03下载
- 积分:1
-
用于字幕滚动的源代码,挺好用的
用于字幕滚动的源代码,挺好用的-subtitles rolling for the source code, the very good
- 2023-04-15 12:45:03下载
- 积分:1