# Screenshot-with-picture-edit **Repository Path**: ciyeer/Screenshot-with-picture-edit ## Basic Information - **Project Name**: Screenshot-with-picture-edit - **Description**: 基于qt的截图工具实现了截图后进行多种编辑,采用仿QQ截图控制面板 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-07-30 - **Last Updated**: 2023-07-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 基于Qt的截图工具,采用了类似QQ截图的控制面板,实现截图后直接进行编辑 截图的思路主要是先得到当前的全屏图,然后沿着这个全屏图绘制一大圈路径,然后用暗色填充,即得到了背景大图。基本的截图操作就是根据鼠标初始按下的位置和最终松开的位置,根据这两个位置点,得到一个矩形,按照这个矩形绘制路径,然后再从背景大路径中将这个小路径用subpath扣掉,想要得到的截图区域就出现了。截图后的编辑功能是采用了将截取区域的图绘制到一个额外引入的label上面,利用编辑区按钮触发后在其中进行编辑操作。定义想要编辑的图形种类的结构体,引入QVector向量进行保存。 马赛克及撤销功能有待添加,, 基本截图: ![基本截图](https://github.com/lidian53/Screenshot-with-picture-edit-Based-on-Qt/blob/master/screenimage/ima1.jpg) 文字编辑: ![文字编辑](https://github.com/lidian53/Screenshot-with-picture-edit-Based-on-Qt/blob/master/screenimage/ima.jpg) 画箭头: ![画箭头](https://github.com/lidian53/Screenshot-with-picture-edit-Based-on-Qt/blob/master/screenimage/ima2.jpg) 画矩形: ![画矩形](https://github.com/lidian53/Screenshot-with-picture-edit-Based-on-Qt/blob/master/screenimage/ima3.jpg) 画圆形: ![画圆形](https://github.com/lidian53/Screenshot-with-picture-edit-Based-on-Qt/blob/master/screenimage/ima4.jpg) 同时编辑: ![同时编辑](https://github.com/lidian53/Screenshot-with-picture-edit-Based-on-Qt/blob/master/screenimage/ima5.jpg)