├── PixViewer ├── lena.bmp ├── main.cpp ├── ImageShot.cpp ├── PixViewer.cpp ├── PixViewer.h ├── wallhaven-x6l1ed.jpg ├── About.h ├── About.cpp ├── PixViewer.qrc ├── ImageShot.h ├── resources │ ├── back.svg │ ├── add_picture.svg │ ├── down_picture.svg │ ├── shot.svg │ ├── pic_file.svg │ ├── about.svg │ ├── add.svg │ ├── center_pic.svg │ ├── cmp.svg │ ├── sync.svg │ ├── 像素风_图片 (1).svg │ └── 像素风_图片.svg ├── PixViewer.vcxproj.filters ├── ImageShot.ui ├── PixViewer.vcxproj ├── About.ui └── PixViewer.ui ├── PixViewer.sln ├── README.md ├── .gitattributes └── .gitignore /PixViewer/lena.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoguo1417/PixViewer/HEAD/PixViewer/lena.bmp -------------------------------------------------------------------------------- /PixViewer/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoguo1417/PixViewer/HEAD/PixViewer/main.cpp -------------------------------------------------------------------------------- /PixViewer/ImageShot.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoguo1417/PixViewer/HEAD/PixViewer/ImageShot.cpp -------------------------------------------------------------------------------- /PixViewer/PixViewer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoguo1417/PixViewer/HEAD/PixViewer/PixViewer.cpp -------------------------------------------------------------------------------- /PixViewer/PixViewer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoguo1417/PixViewer/HEAD/PixViewer/PixViewer.h -------------------------------------------------------------------------------- /PixViewer/wallhaven-x6l1ed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoguo1417/PixViewer/HEAD/PixViewer/wallhaven-x6l1ed.jpg -------------------------------------------------------------------------------- /PixViewer/About.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include "ui_About.h" 5 | 6 | class About : public QWidget 7 | { 8 | Q_OBJECT 9 | 10 | public: 11 | About(QWidget *parent = nullptr); 12 | ~About(); 13 | 14 | private: 15 | Ui::AboutClass ui; 16 | }; 17 | -------------------------------------------------------------------------------- /PixViewer/About.cpp: -------------------------------------------------------------------------------- 1 | #include "About.h" 2 | 3 | About::About(QWidget *parent) 4 | : QWidget(parent) 5 | { 6 | ui.setupUi(this); 7 | 8 | ui.label_url1->setOpenExternalLinks(true); 9 | ui.label_url2->setOpenExternalLinks(true); 10 | } 11 | 12 | About::~About() 13 | {} 14 | -------------------------------------------------------------------------------- /PixViewer/PixViewer.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | resources/add_picture.svg 4 | resources/down_picture.svg 5 | resources/像素风_图片.svg 6 | resources/shot.svg 7 | resources/cmp.svg 8 | resources/about.svg 9 | resources/pic_file.svg 10 | resources/center_pic.svg 11 | resources/sync.svg 12 | resources/add.svg 13 | resources/back.svg 14 | resources/像素风_图片 (1).svg 15 | 16 | 17 | -------------------------------------------------------------------------------- /PixViewer/ImageShot.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include "ui_ImageShot.h" 5 | #include 6 | #include 7 | 8 | class ImageShot : public QWidget 9 | { 10 | Q_OBJECT 11 | 12 | public: 13 | ImageShot(QWidget *parent = Q_NULLPTR); 14 | ~ImageShot(); 15 | void setRect(QRect rect); 16 | 17 | protected: 18 | virtual void paintEvent(QPaintEvent * event); 19 | virtual void mouseMoveEvent(QMouseEvent * event); 20 | virtual void mousePressEvent(QMouseEvent * event); 21 | 22 | private: 23 | Ui::ImageShot ui; 24 | QPoint m_startPoint; 25 | QRect selection; 26 | 27 | private slots: 28 | void onBtCancleClicked(); 29 | void onBtSaveClicked(); 30 | void onBtResetClicked(); 31 | void onBtModifyClicked(); 32 | 33 | signals: 34 | void endShot(); 35 | void savePic(); 36 | void reset(); 37 | void sig_modify(QRect); 38 | }; 39 | -------------------------------------------------------------------------------- /PixViewer/resources/back.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer/resources/add_picture.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer/resources/down_picture.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.33529.622 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PixViewer", "PixViewer\PixViewer.vcxproj", "{E090D76C-FDF9-45D1-8235-2BBFAEAA7668}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Release|x64 = Release|x64 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E090D76C-FDF9-45D1-8235-2BBFAEAA7668}.Debug|x64.ActiveCfg = Debug|x64 15 | {E090D76C-FDF9-45D1-8235-2BBFAEAA7668}.Debug|x64.Build.0 = Debug|x64 16 | {E090D76C-FDF9-45D1-8235-2BBFAEAA7668}.Release|x64.ActiveCfg = Release|x64 17 | {E090D76C-FDF9-45D1-8235-2BBFAEAA7668}.Release|x64.Build.0 = Release|x64 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {D28B8669-8ED1-4EE6-9409-2DAE875BCA04} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /PixViewer/resources/shot.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer/resources/pic_file.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer/resources/about.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer/resources/add.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer/resources/center_pic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PixViewer V2.0.0 2 | 3 | PixViewer是参照VS插件ImageWatch,基于**Qt**的开源图片查看工具,在[ImageViewer V1.1.0](https://github.com/xiaoguo1417/ImageViewer)的基础上,保留了图像像素灰度值查看、放大缩小及拖拽的基础功能,参照截图工具优化了图像ROI区域截取功能,增加了两张图像的对比功能。 4 | Releases中放置了PixViewer V2.0.0的安装版和绿色免安装版。 5 | 6 | # 1 基础功能 7 | 8 | ![PixViewer_1](https://cdn.jsdelivr.net/gh/xiaoguo1417/PicHost@main/img/PixViewer_1.gif) 9 | 10 | PixViewer的初衷是做一个类似于VS中图像查看插件Image Watch的软件,不需要每次打开VS查看图像中的像素值,因此基础功能做的就是图像查看相关,具体如下: 11 | 12 | | 功能 | 说明 | 13 | | -------------- | ------------------------------------------------------------ | 14 | | 图像查看 | 加载单通道或三通道图片,软件下方状态栏依次显示:当前鼠标点的图像坐标及像素值、图像放大比例、图像尺寸。 | 15 | | 像素值查看 | 鼠标在图像上移动查看不同位置像素值,放大比例超过64时像素点灰度值绘制在图像中 | 16 | | 移动;放大缩小 | 鼠标左键拖动图片可在窗口中移动;鼠标滚轮向前、向后滚动进行放缩,每滚动1次放大比例为1/0.707 | 17 | | 居中查看 | 菜单栏中居中按钮,自动调整图像放大比例适应窗口大小 | 18 | 19 | # 2 截图功能 20 | 21 | ![PixViewer_2](https://cdn.jsdelivr.net/gh/xiaoguo1417/PicHost@main/img/PixViewer_2.gif) 22 | 23 | 相较1.1.0版本,参照主流截图软件逻辑对ROI区域截取进行了升级,点击菜单栏截取按钮后进入截取图像区域功能,图像增加灰色蒙版,左下角增加截取信息预览窗口,详细功能操作如下: 24 | 25 | | 功能 | 说明 | 26 | | ------------ | ------------------------------------------------------------ | 27 | | 截取图像区域 | 在截取功能下左键拖动,形成截取区域,对应区域变明亮,并增加虚线矩形框 | 28 | | 调整截取区域 | 在虚线矩形框附近进行拖动,调整区域位置和大小;左下角可以更精确地以矩形框左上角位置及大小调整矩形区域 | 29 | | 图像移动缩放 | 截取功能下鼠标右键可拖动图片移动,鼠标滚轮进行缩放 | 30 | | 截取区域保存 | 左下角保存按钮可以保存截取区域到指定位置 | 31 | 32 | # 3 对比功能 33 | 34 | ![PixViewer_3](https://cdn.jsdelivr.net/gh/xiaoguo1417/PicHost@main/img/PixViewer_3.gif) 35 | 36 | 新增图像对比功能,可以同步及异步比较两幅图像的细节信息,通过菜单栏对比按钮进入图像对比功能,详细功能如下: 37 | 38 | | 功能 | 说明 | 39 | | -------- | ------------------------------------------------------------ | 40 | | 图像加载 | 进入图像对比功能后默认将两幅图像均设置为主界面图像,可通过打开图片功能分别加载两幅图像(需要注意的是两幅图像必须通道数及图像尺寸一致) | 41 | | 模式切换 | 同步模式下两幅图像会以同样的位置及放大比例进行呈现,方便细节对比;点击模式后切换为异步模式,两幅图像可分别进行放大缩小及移动 | 42 | 43 | # 4 关于软件 44 | 45 | PixViewer_4 46 | 47 | 开源代码:[PixViewer](https://github.com/xiaoguo1417/PixViewer) 48 | 49 | 欢迎进行issue和Pr,欢迎一起交流学习。 50 | -------------------------------------------------------------------------------- /PixViewer/resources/cmp.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer/PixViewer.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | qml;cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | qrc;rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {99349809-55BA-4b9d-BF79-8FDBB0286EB3} 18 | ui 19 | 20 | 21 | {639EADAA-A684-42e4-A9AD-28FC9BCB8F7C} 22 | ts 23 | 24 | 25 | 26 | 27 | Resource Files 28 | 29 | 30 | Form Files 31 | 32 | 33 | Header Files 34 | 35 | 36 | Source Files 37 | 38 | 39 | 40 | 41 | Source Files 42 | 43 | 44 | Source Files 45 | 46 | 47 | Source Files 48 | 49 | 50 | 51 | 52 | Form Files 53 | 54 | 55 | Form Files 56 | 57 | 58 | 59 | 60 | Header Files 61 | 62 | 63 | Header Files 64 | 65 | 66 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /PixViewer/resources/sync.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer/ImageShot.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | ImageShot 4 | 5 | 6 | 7 | 0 8 | 0 9 | 278 10 | 283 11 | 12 | 13 | 14 | ImageShot 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 100 24 | 16777215 25 | 26 | 27 | 28 | X: 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 150 37 | 16777215 38 | 39 | 40 | 41 | 10000 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 100 54 | 16777215 55 | 56 | 57 | 58 | Y: 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 150 67 | 16777215 68 | 69 | 70 | 71 | 10000 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 100 84 | 16777215 85 | 86 | 87 | 88 | 宽度: 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 150 97 | 16777215 98 | 99 | 100 | 101 | 10000 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 100 114 | 16777215 115 | 116 | 117 | 118 | 高度: 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 150 127 | 16777215 128 | 129 | 130 | 131 | 10000 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 保存 143 | 144 | 145 | 146 | 147 | 148 | 149 | 取消 150 | 151 | 152 | 153 | 154 | 155 | 156 | 修改 157 | 158 | 159 | 160 | 161 | 162 | 163 | 重置 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /PixViewer/PixViewer.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | Debug 12 | x64 13 | 14 | 15 | Release 16 | x64 17 | 18 | 19 | 20 | {E090D76C-FDF9-45D1-8235-2BBFAEAA7668} 21 | QtVS_v304 22 | 10.0.19041.0 23 | 10.0.19041.0 24 | $(MSBuildProjectDirectory)\QtMsBuild 25 | 26 | 27 | 28 | Application 29 | v142 30 | 31 | 32 | Application 33 | v142 34 | 35 | 36 | 37 | 38 | 39 | 40 | msvc2019_64 41 | core;gui;widgets 42 | debug 43 | 44 | 45 | msvc2019_64 46 | core;gui;widgets 47 | release 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | true 70 | true 71 | ProgramDatabase 72 | Disabled 73 | 74 | 75 | Windows 76 | true 77 | 78 | 79 | 80 | 81 | true 82 | true 83 | None 84 | MaxSpeed 85 | 86 | 87 | Windows 88 | false 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /PixViewer/About.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | AboutClass 4 | 5 | 6 | 7 | 0 8 | 0 9 | 550 10 | 508 11 | 12 | 13 | 14 | 关于 15 | 16 | 17 | 18 | :/PixViewer/resources/像素风_图片.svg:/PixViewer/resources/像素风_图片.svg 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 36 27 | 68 28 | 100 29 | 100 30 | 31 | 32 | 33 | 34 | 100 35 | 100 36 | 37 | 38 | 39 | 40 | 100 41 | 100 42 | 43 | 44 | 45 | border-image: url(:/PixViewer/resources/像素风_图片 (1).svg); 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | QFrame::StyledPanel 57 | 58 | 59 | QFrame::Raised 60 | 61 | 62 | 63 | 64 | 65 | 66 | 11 67 | true 68 | 69 | 70 | 71 | PixViewer 72 | 73 | 74 | Qt::AlignCenter 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 11 83 | true 84 | 85 | 86 | 87 | V2.0.0(Apr 7 2024) 88 | 89 | 90 | Qt::AlignCenter 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 10 99 | 100 | 101 | 102 | 参照ImageWatch插件实现图像的像素坐标和灰度值等的查看;并增加图片截取ROI区域及两张图片同步及异步对比功能 103 | 104 | 105 | Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter 106 | 107 | 108 | true 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 10 123 | 124 | 125 | 126 | 平台及语言:C++; Visual Studio 2019; Qt 5.15.2 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 10 135 | 136 | 137 | 138 | 作者:xiaoguo1417 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 10 149 | 150 | 151 | 152 | 开源代码: 153 | 154 | 155 | 156 | 157 | 158 | 159 | <html><head/><body><p><a href="https://github.com/xiaoguo1417/PixViewer"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/xiaoguo1417/PixViewer</span></a></p></body></html> 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 10 172 | 173 | 174 | 175 | Blog: 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 9 184 | 185 | 186 | 187 | <html><head/><body><p><a href="https://xiaoguo1417.github.io/"><span style=" text-decoration: underline; color:#0000ff;">https://xiaoguo1417.github.io/</span></a></p></body></html> 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | Qt::Vertical 197 | 198 | 199 | 200 | 20 201 | 63 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Oo]ut/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide (cross platform F# VS Code tools) working folder 360 | .ionide/ 361 | 362 | # Fody - auto-generated XML schema 363 | FodyWeavers.xsd -------------------------------------------------------------------------------- /PixViewer/PixViewer.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | PixViewerClass 4 | 5 | 6 | 7 | 0 8 | 0 9 | 1411 10 | 990 11 | 12 | 13 | 14 | PixViewer 15 | 16 | 17 | 18 | :/PixViewer/resources/像素风_图片.svg:/PixViewer/resources/像素风_图片.svg 19 | 20 | 21 | 22 | 23 | 24 | 25 | 0 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | Qt::Vertical 40 | 41 | 42 | 43 | 20 44 | 201 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | Qt::Vertical 53 | 54 | 55 | 56 | 20 57 | 201 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | Qt::Vertical 66 | 67 | 68 | 69 | 20 70 | 201 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | QGroupBox#groupBox { 79 | border: 2px solid; 80 | border-color: rgb(221, 117, 161); 81 | } 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 0 90 | 91 | 92 | 0 93 | 94 | 95 | 0 96 | 97 | 98 | 0 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | QGroupBox#groupBox_3 { 110 | border: 0px solid; 111 | } 112 | 113 | 114 | 115 | 116 | 117 | 118 | 0 119 | 120 | 121 | 0 122 | 123 | 124 | 0 125 | 126 | 127 | 0 128 | 129 | 130 | 131 | 132 | 133 | 0 134 | 45 135 | 136 | 137 | 138 | 139 | 10 140 | true 141 | 142 | 143 | 144 | QPushButton#bt_open1{ 145 | background-color: rgb(221,117,161); 146 | border:1px solid red; 147 | border-color: rgb(221,117,161); 148 | color:rgb(255, 255, 255); 149 | } 150 | 151 | 152 | 打开图片1 153 | 154 | 155 | 156 | :/PixViewer/resources/add.svg:/PixViewer/resources/add.svg 157 | 158 | 159 | 160 | 36 161 | 36 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 0 171 | 45 172 | 173 | 174 | 175 | 176 | 10 177 | true 178 | 179 | 180 | 181 | QPushButton#bt_open2{ 182 | background-color: rgb(1,39,119); 183 | border:1px solid red; 184 | border-color: rgb(1,39,119); 185 | color:rgb(255, 255, 255); 186 | } 187 | 188 | 189 | 打开图片2 190 | 191 | 192 | 193 | :/PixViewer/resources/add.svg:/PixViewer/resources/add.svg 194 | 195 | 196 | 197 | 36 198 | 36 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 0 208 | 45 209 | 210 | 211 | 212 | 213 | 10 214 | true 215 | 216 | 217 | 218 | QPushButton#bt_sync{ 219 | background-color: rgb(221,117,161); 220 | border:1px solid red; 221 | border-color: rgb(221,117,161); 222 | color:rgb(255, 255, 255); 223 | } 224 | 225 | 226 | 同步模式 227 | 228 | 229 | 230 | :/PixViewer/resources/sync.svg:/PixViewer/resources/sync.svg 231 | 232 | 233 | 234 | 30 235 | 30 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 0 245 | 45 246 | 247 | 248 | 249 | 250 | 10 251 | true 252 | 253 | 254 | 255 | QPushButton#bt_back{ 256 | background-color: rgb(1,39,119); 257 | border:1px solid red; 258 | border-color: rgb(1,39,119); 259 | color:rgb(255, 255, 255); 260 | } 261 | 262 | 263 | 返回 264 | 265 | 266 | 267 | :/PixViewer/resources/back.svg:/PixViewer/resources/back.svg 268 | 269 | 270 | 271 | 272 | 273 | 274 | Qt::Vertical 275 | 276 | 277 | 278 | 20 279 | 249 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | QGroupBox#groupBox_2 { 291 | border: 2px solid; 292 | border-color: rgb(1, 39, 119); 293 | } 294 | 295 | 296 | 297 | 298 | 299 | 300 | 0 301 | 302 | 303 | 0 304 | 305 | 306 | 0 307 | 308 | 309 | 0 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | Qt::Vertical 321 | 322 | 323 | 324 | 20 325 | 201 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | Qt::Vertical 334 | 335 | 336 | 337 | 20 338 | 201 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | Qt::Vertical 347 | 348 | 349 | 350 | 20 351 | 201 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 0 366 | 0 367 | 1411 368 | 29 369 | 370 | 371 | 372 | 373 | 文件 374 | 375 | 376 | 377 | 378 | 379 | 帮助 380 | 381 | 382 | 383 | 384 | 385 | 功能 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | TopToolBarArea 398 | 399 | 400 | false 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | :/PixViewer/resources/pic_file.svg:/PixViewer/resources/pic_file.svg 413 | 414 | 415 | 打开 416 | 417 | 418 | 打开图片 419 | 420 | 421 | 422 | 423 | 424 | :/PixViewer/resources/about.svg:/PixViewer/resources/about.svg 425 | 426 | 427 | 关于 428 | 429 | 430 | 431 | 432 | 433 | :/PixViewer/resources/shot.svg:/PixViewer/resources/shot.svg 434 | 435 | 436 | 截图 437 | 438 | 439 | 440 | 441 | 442 | :/PixViewer/resources/cmp.svg:/PixViewer/resources/cmp.svg 443 | 444 | 445 | 对比 446 | 447 | 448 | 449 | 450 | 451 | :/PixViewer/resources/center_pic.svg:/PixViewer/resources/center_pic.svg 452 | 453 | 454 | 居中 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | -------------------------------------------------------------------------------- /PixViewer/resources/像素风_图片 (1).svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PixViewer/resources/像素风_图片.svg: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------