-
使用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
-
shortest path search algorithm applications. Use the shortest path search as a c...
最短路径搜索算法的应用。利用最短路径搜索作为校园地图导航-shortest path search algorithm applications. Use the shortest path search as a campus map navigation
- 2023-08-02 11:05:03下载
- 积分:1
-
Qt编程——数字图像处理
Qt编程,很小众化,但是未来趋势。简单的Qt编程实现。其实也谈不上什么图像处理程序,功能很简单,如图像变灰度,单色,二值,膨胀,腐蚀,取边界,转hsv,我只做了个转h但还有点问题,,,由于程序是自己一时兴起,也是刚学qt的缘故。自己是有项目关于彩色血细胞识别的,但老师给的Borland c++平台,而且有老师帮助那个方便许多。这个程序早就荒废下来,以前还在本论坛发过求合作的帖,也陆陆续续有人找过我。现在把源代码分享给大家,有兴趣的大家可以完善下功能,或大家在这多讨论点其他关于qt图像处理的问题。。。其实qt做图像处理也并不难,只要知道怎么对像素处理就好多的。我想这个简单程序还是能给想用qt做图像处理起到点帮助的
附(程序有的功能是还没有写,或有的功能是有问题的,但总的来说是没什么问题的,那个二值化后才能进行膨胀腐蚀,获取边界,程序没什么注释望见谅了)
- 2022-03-02 01:03:04下载
- 积分:1
-
a simple literary assistant ah! ~ ~ Can be statistics or the number of character...
一个简单的文学助手啊!~~可以统计数字或字的数量还有所在的行-a simple literary assistant ah! ~ ~ Can be statistics or the number of characters have the line
- 2022-03-24 06:19:28下载
- 积分:1
-
很酷的一个网站的引导页,flash DIV
很酷的一个网站的引导页,flash DIV -the homepage of a website~
- 2022-03-15 04:05:01下载
- 积分:1
-
此程序中实现了树型控件节点拖动的功能,编译运行于VC++环境中...
此程序中实现了树型控件节点拖动的功能,编译运行于VC++环境中-this program achieved a tree node controls the scrolling function, compiler runs on VC++ environment
- 2022-02-02 06:33:55下载
- 积分:1
-
一个单独的小程序界面
用VC编的一个界面分隔小程序-VC series a separate small program interface
- 2022-05-09 06:56:18下载
- 积分:1
-
专用浏览器。rar,可以自动刷新,是否复制的。
Love bar dedicated browser. Rar, can automatically refresh, whether reproduced html file.
- 2022-05-17 13:49:45下载
- 积分:1
-
一个图形菜单的很好的例子
一个图形菜单的很好的例子-a good example
- 2022-04-29 09:45:13下载
- 积分:1
-
Scroll bar can also be used as separate components to use. The establishment of...
滚动条也可以作为单独的元件来使用。
建立水平滚动条的过程和其消息映射
-Scroll bar can also be used as separate components to use. The establishment of the horizontal scroll bar of the process and its message map
- 2022-07-13 18:31:04下载
- 积分:1