-
使用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
-
在VC上实现与Palm保持同步通信的软件源码!
在VC上实现与Palm保持同步通信的软件源码!-in VC achieve Palm keep pace with the communications software source code!
- 2023-01-15 23:55:03下载
- 积分:1
-
很漂亮的双层时钟,放在 您的主页上一定会让来访者满意地
很漂亮的双层时钟,放在 您的主页上一定会让来访者满意地-a very nice double-clock, on your home page visitors will get satisfaction
- 2023-05-14 20:45:02下载
- 积分:1
-
一些漂亮的提示信息代码 可以生成各种不同效果的提示
一些漂亮的提示信息代码 可以生成各种不同效果的提示-Some beautiful message code can generate a variety of different effects tips
- 2022-03-14 13:11:06下载
- 积分:1
-
windwos 平台源代码,程序皮肤代码,vc++6.0
windwos 平台源代码,程序皮肤代码,vc++6.0-Windows platform source code, program code skin, vc++ 6.0
- 2022-02-10 04:20:54下载
- 积分:1
-
以位图为背景的对话框类CBitmapDialog的演示程序。
以位图为背景的对话框类CBitmapDialog的演示程序。- Take position chart as background dialog box class
CBitmapDialog demonstration program.
- 2022-02-25 14:38:05下载
- 积分:1
-
定时器的应用 定时器可以每经过一定的时间间隔就被触发一次,进而完成一次响应...
定时器的应用 定时器可以每经过一定的时间间隔就被触发一次,进而完成一次响应-application of the timer every timer can take a certain time interval has been a trigger, then completed a response
- 2022-04-30 10:50:51下载
- 积分:1
-
自动滚屏功能
自动滚屏功能-Autoscroll function
- 2023-04-23 19:00:02下载
- 积分:1
-
刚刚搞好的 宾馆管理系统 有需要的一定要近来看看 绝对值得...
刚刚搞好的 宾馆管理系统 有需要的一定要近来看看 绝对值得-just do a good job in the hotel management system need to look at the recent definitely worth
- 2022-04-14 17:51:44下载
- 积分:1
-
Vc achieved in the control at run time to change the lay of the manual (by mouse...
实现了vc中控件在运行时的手动改变打下(通过鼠标拖动)-Vc achieved in the control at run time to change the lay of the manual (by mouse drag)
- 2022-08-04 01:57:29下载
- 积分:1