├── .gitattributes ├── .gitignore ├── LICENSE.MD ├── MathpixCsharp.sln ├── OfficialApi.md ├── README.md ├── Setup1 └── Setup1.vdproj ├── ThirdpartyApi.md ├── WindowsFormsApp1 ├── App.config ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── Form2.Designer.cs ├── Form2.cs ├── Form2.resx ├── GetCode.cs ├── MathpixCsharp.csproj ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── Resources │ └── default.png ├── app.manifest ├── login.Designer.cs ├── login.cs ├── login.resx └── packages.config └── images ├── demo1.gif ├── goodbye.jpg ├── icon.ico └── icon.svg /.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 | -------------------------------------------------------------------------------- /.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 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | x64/ 22 | x86/ 23 | [Aa][Rr][Mm]/ 24 | [Aa][Rr][Mm]64/ 25 | bld/ 26 | [Bb]in/ 27 | [Oo]bj/ 28 | [Ll]og/ 29 | 30 | # Visual Studio 2015/2017 cache/options directory 31 | .vs/ 32 | # Uncomment if you have tasks that create the project's static files in wwwroot 33 | #wwwroot/ 34 | 35 | # Visual Studio 2017 auto generated files 36 | Generated\ Files/ 37 | 38 | # MSTest test Results 39 | [Tt]est[Rr]esult*/ 40 | [Bb]uild[Ll]og.* 41 | 42 | # NUNIT 43 | *.VisualState.xml 44 | TestResult.xml 45 | 46 | # Build Results of an ATL Project 47 | [Dd]ebugPS/ 48 | [Rr]eleasePS/ 49 | dlldata.c 50 | 51 | # Benchmark Results 52 | BenchmarkDotNet.Artifacts/ 53 | 54 | # .NET Core 55 | project.lock.json 56 | project.fragment.lock.json 57 | artifacts/ 58 | 59 | # StyleCop 60 | StyleCopReport.xml 61 | 62 | # Files built by Visual Studio 63 | *_i.c 64 | *_p.c 65 | *_h.h 66 | *.ilk 67 | *.meta 68 | *.obj 69 | *.iobj 70 | *.pch 71 | *.pdb 72 | *.ipdb 73 | *.pgc 74 | *.pgd 75 | *.rsp 76 | *.sbr 77 | *.tlb 78 | *.tli 79 | *.tlh 80 | *.tmp 81 | *.tmp_proj 82 | *_wpftmp.csproj 83 | *.log 84 | *.vspscc 85 | *.vssscc 86 | .builds 87 | *.pidb 88 | *.svclog 89 | *.scc 90 | 91 | # Chutzpah Test files 92 | _Chutzpah* 93 | 94 | # Visual C++ cache files 95 | ipch/ 96 | *.aps 97 | *.ncb 98 | *.opendb 99 | *.opensdf 100 | *.sdf 101 | *.cachefile 102 | *.VC.db 103 | *.VC.VC.opendb 104 | 105 | # Visual Studio profiler 106 | *.psess 107 | *.vsp 108 | *.vspx 109 | *.sap 110 | 111 | # Visual Studio Trace Files 112 | *.e2e 113 | 114 | # TFS 2012 Local Workspace 115 | $tf/ 116 | 117 | # Guidance Automation Toolkit 118 | *.gpState 119 | 120 | # ReSharper is a .NET coding add-in 121 | _ReSharper*/ 122 | *.[Rr]e[Ss]harper 123 | *.DotSettings.user 124 | 125 | # JustCode is a .NET coding add-in 126 | .JustCode 127 | 128 | # TeamCity is a build add-in 129 | _TeamCity* 130 | 131 | # DotCover is a Code Coverage Tool 132 | *.dotCover 133 | 134 | # AxoCover is a Code Coverage Tool 135 | .axoCover/* 136 | !.axoCover/settings.json 137 | 138 | # Visual Studio code coverage results 139 | *.coverage 140 | *.coveragexml 141 | 142 | # NCrunch 143 | _NCrunch_* 144 | .*crunch*.local.xml 145 | nCrunchTemp_* 146 | 147 | # MightyMoose 148 | *.mm.* 149 | AutoTest.Net/ 150 | 151 | # Web workbench (sass) 152 | .sass-cache/ 153 | 154 | # Installshield output folder 155 | [Ee]xpress/ 156 | 157 | # DocProject is a documentation generator add-in 158 | DocProject/buildhelp/ 159 | DocProject/Help/*.HxT 160 | DocProject/Help/*.HxC 161 | DocProject/Help/*.hhc 162 | DocProject/Help/*.hhk 163 | DocProject/Help/*.hhp 164 | DocProject/Help/Html2 165 | DocProject/Help/html 166 | 167 | # Click-Once directory 168 | publish/ 169 | 170 | # Publish Web Output 171 | *.[Pp]ublish.xml 172 | *.azurePubxml 173 | # Note: Comment the next line if you want to checkin your web deploy settings, 174 | # but database connection strings (with potential passwords) will be unencrypted 175 | *.pubxml 176 | *.publishproj 177 | 178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 179 | # checkin your Azure Web App publish settings, but sensitive information contained 180 | # in these scripts will be unencrypted 181 | PublishScripts/ 182 | 183 | # NuGet Packages 184 | *.nupkg 185 | # The packages folder can be ignored because of Package Restore 186 | **/[Pp]ackages/* 187 | # except build/, which is used as an MSBuild target. 188 | !**/[Pp]ackages/build/ 189 | # Uncomment if necessary however generally it will be regenerated when needed 190 | #!**/[Pp]ackages/repositories.config 191 | # NuGet v3's project.json files produces more ignorable files 192 | *.nuget.props 193 | *.nuget.targets 194 | 195 | # Microsoft Azure Build Output 196 | csx/ 197 | *.build.csdef 198 | 199 | # Microsoft Azure Emulator 200 | ecf/ 201 | rcf/ 202 | 203 | # Windows Store app package directories and files 204 | AppPackages/ 205 | BundleArtifacts/ 206 | Package.StoreAssociation.xml 207 | _pkginfo.txt 208 | *.appx 209 | 210 | # Visual Studio cache files 211 | # files ending in .cache can be ignored 212 | *.[Cc]ache 213 | # but keep track of directories ending in .cache 214 | !?*.[Cc]ache/ 215 | 216 | # Others 217 | ClientBin/ 218 | ~$* 219 | *~ 220 | *.dbmdl 221 | *.dbproj.schemaview 222 | *.jfm 223 | *.pfx 224 | *.publishsettings 225 | orleans.codegen.cs 226 | 227 | # Including strong name files can present a security risk 228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 229 | #*.snk 230 | 231 | # Since there are multiple workflows, uncomment next line to ignore bower_components 232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 233 | #bower_components/ 234 | 235 | # RIA/Silverlight projects 236 | Generated_Code/ 237 | 238 | # Backup & report files from converting an old project file 239 | # to a newer Visual Studio version. Backup files are not needed, 240 | # because we have git ;-) 241 | _UpgradeReport_Files/ 242 | Backup*/ 243 | UpgradeLog*.XML 244 | UpgradeLog*.htm 245 | ServiceFabricBackup/ 246 | *.rptproj.bak 247 | 248 | # SQL Server files 249 | *.mdf 250 | *.ldf 251 | *.ndf 252 | 253 | # Business Intelligence projects 254 | *.rdl.data 255 | *.bim.layout 256 | *.bim_*.settings 257 | *.rptproj.rsuser 258 | *- Backup*.rdl 259 | 260 | # Microsoft Fakes 261 | FakesAssemblies/ 262 | 263 | # GhostDoc plugin setting file 264 | *.GhostDoc.xml 265 | 266 | # Node.js Tools for Visual Studio 267 | .ntvs_analysis.dat 268 | node_modules/ 269 | 270 | # Visual Studio 6 build log 271 | *.plg 272 | 273 | # Visual Studio 6 workspace options file 274 | *.opt 275 | 276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 277 | *.vbw 278 | 279 | # Visual Studio LightSwitch build output 280 | **/*.HTMLClient/GeneratedArtifacts 281 | **/*.DesktopClient/GeneratedArtifacts 282 | **/*.DesktopClient/ModelManifest.xml 283 | **/*.Server/GeneratedArtifacts 284 | **/*.Server/ModelManifest.xml 285 | _Pvt_Extensions 286 | 287 | # Paket dependency manager 288 | .paket/paket.exe 289 | paket-files/ 290 | 291 | # FAKE - F# Make 292 | .fake/ 293 | 294 | # JetBrains Rider 295 | .idea/ 296 | *.sln.iml 297 | 298 | # CodeRush personal settings 299 | .cr/personal 300 | 301 | # Python Tools for Visual Studio (PTVS) 302 | __pycache__/ 303 | *.pyc 304 | 305 | # Cake - Uncomment if you are using it 306 | # tools/** 307 | # !tools/packages.config 308 | 309 | # Tabs Studio 310 | *.tss 311 | 312 | # Telerik's JustMock configuration file 313 | *.jmconfig 314 | 315 | # BizTalk build output 316 | *.btp.cs 317 | *.btm.cs 318 | *.odx.cs 319 | *.xsd.cs 320 | 321 | # OpenCover UI analysis results 322 | OpenCover/ 323 | 324 | # Azure Stream Analytics local run output 325 | ASALocalRun/ 326 | 327 | # MSBuild Binary and Structured Log 328 | *.binlog 329 | 330 | # NVidia Nsight GPU debugger configuration file 331 | *.nvuser 332 | 333 | # MFractors (Xamarin productivity tool) working folder 334 | .mfractor/ 335 | 336 | # Local History for Visual Studio 337 | .localhistory/ 338 | 339 | # BeatPulse healthcheck temp database 340 | healthchecksdb 341 | -------------------------------------------------------------------------------- /LICENSE.MD: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /MathpixCsharp.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.29806.167 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MathpixCsharp", "WindowsFormsApp1\MathpixCsharp.csproj", "{7F677AF7-C758-4970-9FD7-8C1F08B9399A}" 7 | EndProject 8 | Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Setup1", "Setup1\Setup1.vdproj", "{ADFD76A5-BA5E-44F2-9EC2-591B201EEA01}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | All|Any CPU = All|Any CPU 13 | Debug|Any CPU = Debug|Any CPU 14 | Release|Any CPU = Release|Any CPU 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {7F677AF7-C758-4970-9FD7-8C1F08B9399A}.All|Any CPU.ActiveCfg = Release|Any CPU 18 | {7F677AF7-C758-4970-9FD7-8C1F08B9399A}.All|Any CPU.Build.0 = Release|Any CPU 19 | {7F677AF7-C758-4970-9FD7-8C1F08B9399A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 20 | {7F677AF7-C758-4970-9FD7-8C1F08B9399A}.Debug|Any CPU.Build.0 = Debug|Any CPU 21 | {7F677AF7-C758-4970-9FD7-8C1F08B9399A}.Release|Any CPU.ActiveCfg = Release|Any CPU 22 | {7F677AF7-C758-4970-9FD7-8C1F08B9399A}.Release|Any CPU.Build.0 = Release|Any CPU 23 | {ADFD76A5-BA5E-44F2-9EC2-591B201EEA01}.All|Any CPU.ActiveCfg = Debug 24 | {ADFD76A5-BA5E-44F2-9EC2-591B201EEA01}.Debug|Any CPU.ActiveCfg = Debug 25 | {ADFD76A5-BA5E-44F2-9EC2-591B201EEA01}.Release|Any CPU.ActiveCfg = Release 26 | EndGlobalSection 27 | GlobalSection(SolutionProperties) = preSolution 28 | HideSolutionNode = FALSE 29 | EndGlobalSection 30 | GlobalSection(ExtensibilityGlobals) = postSolution 31 | SolutionGuid = {2F10F43A-7B6A-4D9C-8BDE-908E9412213E} 32 | EndGlobalSection 33 | EndGlobal 34 | -------------------------------------------------------------------------------- /OfficialApi.md: -------------------------------------------------------------------------------- 1 | ### 使用官方API教程 2 | 3 | 1. 首先到 https://dashboard.mathpix.com/ 注册一个账户并登录。然后到[这里](https://accounts.mathpix.com/ocr-api/new)创建OCR API,在设置Biliing的时候需要用到**国外的信用卡**,可能会暂时扣1美元验证信用卡有效性。 4 | 2. 之后在账户主页点击OCR APIs,就可以看到你的API keys列表,把 app_id 和 app_key 这两个字段复制出来,如下图: 5 | 6 | ![apiPic.png](https://i.loli.net/2021/02/19/iDofHx6bZFmqvVB.png) 7 | 8 | 3. 按照[安装教程](https://github.com/itewqq/MathpixCsharp/blob/master/README.md)装好客户端。安装完之后如果没找到在哪儿启动请打开```开始```进行查找。 9 | 4. 第一次打开会弹出在名为```login```的窗口,在里面填入之前的app_id和app_key,**下方的复选框选择```官方Key```**,**注意不要选错**,选错了会导致无法使用。然后点击确认。只需要填一次之后再打开就不用填了。如果填错了或者要更换Key可以在主界面点击```菜单->重置Key```。 10 | 11 | ![image.png](https://i.loli.net/2021/02/19/HAKMjmYhplwqez4.png) 12 | 13 | 5. 客户端主界面如下图: 14 | 15 | ![image.png](https://i.loli.net/2021/02/19/8eqmzvsGDKUJh9d.png) 16 | 17 | 6. 使用时需要先截屏选择要识别的公式。点击**截屏按钮**或者使用**快捷键Ctrl+Alt+Q** (0.0.6及之前的版本是Ctrl+Alt+M)开始截屏。进入截屏模式时,**鼠标会变成十字形**,如果进入截屏模式后不想截屏了,可以**按右键取消截屏**。截屏过程类似QQ的截屏功能,鼠标按下开始截屏,拖动选择区域,松开完成截屏。 18 | 7. 截屏完成后客户端会自动完成识别,并将识别结果置于文本框内,点击文本框对应的按钮可以复制到剪贴板。为了方便使用,**默认情况下程序会自动把inline的公式复制到剪贴板,无需点击按钮**,如果点击了按钮,则之后的默认复制会记住本次的选择,在之后的自动复制中会选取该选择进行自动复制。完整的演示流程参考下图: 19 | ![使用演示](/images/demo1.gif) 20 | 21 | 8. 当点击关闭窗口的时候,MathpixCsharp会自动最小化到系统托盘,**如果要退出客户端,请右键系统托盘上的客户端图标再选择退出。** 22 | 9. **关于Office Word中的公式**:Word用户请点击**复制MathML**按钮,然后在word文档里**右键->粘贴->仅粘贴文本**。有时候Ctrl+V会有问题,但是现在这个问题貌似很少出现了。另外,由于Word自身处理公式的问题,有时候一些带括号的公式可能会出现这种情况: 23 | ![image.png](https://i.loli.net/2021/02/19/yKu7RCmknDGNz8V.png)这时候只需要把**光标放在公式最后面,敲一下回车**就好了。如果还有问题,就把**光标放在异常的括号后面,点一下空格**就好了。 24 | 25 | 注: 使用**多个显示器**时,MathpixCsharp将选择**其窗体当前所在的屏幕**进行截屏。 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MathpixCsharp: C#实现的Mathpix Windows开源客户端 2 | 3 | 应该不会有外国用户所以就只写中文README了(雾) 4 | 5 | ![使用演示](/images/demo1.gif) 6 | 7 | ## 功能支持: 8 | 9 | - [x] 截图识别公式转换为Latex代码 10 | - [x] 截图识别公式转换为Office Word公式 11 | - [x] 手写公式识别支持 12 | - [x] 多显示器支持 13 | - [x] 最小化到系统托盘 14 | - [x] 快捷键截图 15 | - [x] 官方API支持,每个月可免费用1000次,需要**国外信用卡** 16 | - [x] 第三方API支持,**无需信用卡** 17 | 18 | ## 客户端安装: 19 | 20 | ### 使用安装包: 21 | 22 | 下载最新的[安装包](https://github.com/itewqq/MathpixCsharp/releases/download/0.0.7/MathpixCsharpV0.0.7.zip),解压之后双击Setup.exe,按照提示走即可安装好MathpixCsharp。 23 | 24 | ### 从源代码编译: 25 | 26 | #### 环境准备: 27 | 28 | - Windows 10 29 | - .NET Framework >= 4.6.1 30 | - Visual studio 2017,2019 31 | 32 | 将代码clone到本地 33 | 34 | ```sh 35 | git clone https://github.com/itewqq/MathpixCsharp.git 36 | ``` 37 | 38 | 使用Visual Studio打开项目,在Setup1项目上右键->重新生成,然后在目录```MathpixCsharp\Setup1\Release```下即可找到setup.exe,双击安装即可。 39 | 40 | ## 使用方法 41 | 42 | - 如果你有国外的信用卡,例如Visa,MasterCard,推荐直接使用官方的API,每个月可以免费用1000次。详见 [官方API使用教程](https://github.com/itewqq/MathpixCsharp/blob/dev/OfficialApi.md) 43 | - 如果你没有国外的信用卡,可以: 44 | - 使用第三方API的Key,详见 [第三方API使用教程](https://github.com/itewqq/MathpixCsharp/blob/dev/ThirdpartyApi.md) 45 | - 使用我开发的[Web版](https://mathf.itewqq.cn/),没有快捷键支持,且Word公式转换效果较差。Web版介绍:https://zhuanlan.zhihu.com/p/208212375 46 | 47 | 48 | 当然,如果你不差钱的话使用官方的服务永远是最好的选择 :P 49 | 50 | 另外还有一些功能有待完善,但是现在大概没空。~~丑是丑了点又不是不能用~~ 也可能不能用,欢迎大家提issue,欢迎Pr。 51 | 52 | 53 | -------------------------------------------------------------------------------- /Setup1/Setup1.vdproj: -------------------------------------------------------------------------------- 1 | "DeployProject" 2 | { 3 | "VSVersion" = "3:800" 4 | "ProjectType" = "8:{978C614F-708E-4E1A-B201-565925725DBA}" 5 | "IsWebType" = "8:FALSE" 6 | "ProjectName" = "8:Setup1" 7 | "LanguageId" = "3:2052" 8 | "CodePage" = "3:936" 9 | "UILanguageId" = "3:2052" 10 | "SccProjectName" = "8:" 11 | "SccLocalPath" = "8:" 12 | "SccAuxPath" = "8:" 13 | "SccProvider" = "8:" 14 | "Hierarchy" 15 | { 16 | "Entry" 17 | { 18 | "MsmKey" = "8:_2A2B422351DC4BEEA3E3F6778FC2E2A6" 19 | "OwnerKey" = "8:_UNDEFINED" 20 | "MsmSig" = "8:_UNDEFINED" 21 | } 22 | "Entry" 23 | { 24 | "MsmKey" = "8:_5A5FACF2249C4EF5BFD7B407AA303466" 25 | "OwnerKey" = "8:_UNDEFINED" 26 | "MsmSig" = "8:_UNDEFINED" 27 | } 28 | "Entry" 29 | { 30 | "MsmKey" = "8:_6C7F95FA2008EDFAE87C3ECEF01595A2" 31 | "OwnerKey" = "8:_921FF4E1967C4055AB8A3974C4D41F38" 32 | "MsmSig" = "8:_UNDEFINED" 33 | } 34 | "Entry" 35 | { 36 | "MsmKey" = "8:_921FF4E1967C4055AB8A3974C4D41F38" 37 | "OwnerKey" = "8:_UNDEFINED" 38 | "MsmSig" = "8:_UNDEFINED" 39 | } 40 | "Entry" 41 | { 42 | "MsmKey" = "8:_C19AFD24BA233123BA37383CD863A660" 43 | "OwnerKey" = "8:_921FF4E1967C4055AB8A3974C4D41F38" 44 | "MsmSig" = "8:_UNDEFINED" 45 | } 46 | "Entry" 47 | { 48 | "MsmKey" = "8:_C6127D84699D51CA3AF41C710849F673" 49 | "OwnerKey" = "8:_921FF4E1967C4055AB8A3974C4D41F38" 50 | "MsmSig" = "8:_UNDEFINED" 51 | } 52 | "Entry" 53 | { 54 | "MsmKey" = "8:_UNDEFINED" 55 | "OwnerKey" = "8:_921FF4E1967C4055AB8A3974C4D41F38" 56 | "MsmSig" = "8:_UNDEFINED" 57 | } 58 | "Entry" 59 | { 60 | "MsmKey" = "8:_UNDEFINED" 61 | "OwnerKey" = "8:_C19AFD24BA233123BA37383CD863A660" 62 | "MsmSig" = "8:_UNDEFINED" 63 | } 64 | "Entry" 65 | { 66 | "MsmKey" = "8:_UNDEFINED" 67 | "OwnerKey" = "8:_6C7F95FA2008EDFAE87C3ECEF01595A2" 68 | "MsmSig" = "8:_UNDEFINED" 69 | } 70 | "Entry" 71 | { 72 | "MsmKey" = "8:_UNDEFINED" 73 | "OwnerKey" = "8:_C6127D84699D51CA3AF41C710849F673" 74 | "MsmSig" = "8:_UNDEFINED" 75 | } 76 | } 77 | "Configurations" 78 | { 79 | "Debug" 80 | { 81 | "DisplayName" = "8:Debug" 82 | "IsDebugOnly" = "11:TRUE" 83 | "IsReleaseOnly" = "11:FALSE" 84 | "OutputFilename" = "8:Debug\\MathpixCsharp.msi" 85 | "PackageFilesAs" = "3:2" 86 | "PackageFileSize" = "3:-2147483648" 87 | "CabType" = "3:1" 88 | "Compression" = "3:2" 89 | "SignOutput" = "11:FALSE" 90 | "CertificateFile" = "8:" 91 | "PrivateKeyFile" = "8:" 92 | "TimeStampServer" = "8:" 93 | "InstallerBootstrapper" = "3:2" 94 | "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}" 95 | { 96 | "Enabled" = "11:TRUE" 97 | "PromptEnabled" = "11:TRUE" 98 | "PrerequisitesLocation" = "2:1" 99 | "Url" = "8:" 100 | "ComponentsUrl" = "8:" 101 | "Items" 102 | { 103 | "{EDC2488A-8267-493A-A98E-7D9C3B36CDF3}:.NETFramework,Version=v4.7.2" 104 | { 105 | "Name" = "8:Microsoft .NET Framework 4.7.2 (x86 and x64)" 106 | "ProductCode" = "8:.NETFramework,Version=v4.7.2" 107 | } 108 | } 109 | } 110 | } 111 | "Release" 112 | { 113 | "DisplayName" = "8:Release" 114 | "IsDebugOnly" = "11:FALSE" 115 | "IsReleaseOnly" = "11:TRUE" 116 | "OutputFilename" = "8:Release\\Setup1.msi" 117 | "PackageFilesAs" = "3:2" 118 | "PackageFileSize" = "3:-2147483648" 119 | "CabType" = "3:1" 120 | "Compression" = "3:2" 121 | "SignOutput" = "11:FALSE" 122 | "CertificateFile" = "8:" 123 | "PrivateKeyFile" = "8:" 124 | "TimeStampServer" = "8:" 125 | "InstallerBootstrapper" = "3:2" 126 | "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}" 127 | { 128 | "Enabled" = "11:TRUE" 129 | "PromptEnabled" = "11:TRUE" 130 | "PrerequisitesLocation" = "2:1" 131 | "Url" = "8:" 132 | "ComponentsUrl" = "8:" 133 | "Items" 134 | { 135 | "{EDC2488A-8267-493A-A98E-7D9C3B36CDF3}:.NETFramework,Version=v4.7.2" 136 | { 137 | "Name" = "8:Microsoft .NET Framework 4.7.2 (x86 and x64)" 138 | "ProductCode" = "8:.NETFramework,Version=v4.7.2" 139 | } 140 | } 141 | } 142 | } 143 | } 144 | "Deployable" 145 | { 146 | "CustomAction" 147 | { 148 | } 149 | "DefaultFeature" 150 | { 151 | "Name" = "8:DefaultFeature" 152 | "Title" = "8:" 153 | "Description" = "8:" 154 | } 155 | "ExternalPersistence" 156 | { 157 | "LaunchCondition" 158 | { 159 | "{A06ECF26-33A3-4562-8140-9B0E340D4F24}:_CFD339668AFE4F39811C102DE3DE5767" 160 | { 161 | "Name" = "8:.NET Framework" 162 | "Message" = "8:[VSDNETMSG]" 163 | "FrameworkVersion" = "8:.NETFramework,Version=v4.7.2" 164 | "AllowLaterVersions" = "11:FALSE" 165 | "InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=863262" 166 | } 167 | } 168 | } 169 | "File" 170 | { 171 | "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_2A2B422351DC4BEEA3E3F6778FC2E2A6" 172 | { 173 | "SourcePath" = "8:C:\\Windows\\System32\\msiexec.exe" 174 | "TargetName" = "8:msiexec.exe" 175 | "Tag" = "8:" 176 | "Folder" = "8:_C968909AB5804E62AA8E13F8B5497EDF" 177 | "Condition" = "8:" 178 | "Transitive" = "11:FALSE" 179 | "Vital" = "11:TRUE" 180 | "ReadOnly" = "11:FALSE" 181 | "Hidden" = "11:FALSE" 182 | "System" = "11:FALSE" 183 | "Permanent" = "11:FALSE" 184 | "SharedLegacy" = "11:FALSE" 185 | "PackageAs" = "3:1" 186 | "Register" = "3:1" 187 | "Exclude" = "11:FALSE" 188 | "IsDependency" = "11:FALSE" 189 | "IsolateTo" = "8:" 190 | } 191 | "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_5A5FACF2249C4EF5BFD7B407AA303466" 192 | { 193 | "SourcePath" = "8:..\\images\\icon.ico" 194 | "TargetName" = "8:icon.ico" 195 | "Tag" = "8:" 196 | "Folder" = "8:_C968909AB5804E62AA8E13F8B5497EDF" 197 | "Condition" = "8:" 198 | "Transitive" = "11:FALSE" 199 | "Vital" = "11:TRUE" 200 | "ReadOnly" = "11:FALSE" 201 | "Hidden" = "11:FALSE" 202 | "System" = "11:FALSE" 203 | "Permanent" = "11:FALSE" 204 | "SharedLegacy" = "11:FALSE" 205 | "PackageAs" = "3:1" 206 | "Register" = "3:1" 207 | "Exclude" = "11:FALSE" 208 | "IsDependency" = "11:FALSE" 209 | "IsolateTo" = "8:" 210 | } 211 | "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_6C7F95FA2008EDFAE87C3ECEF01595A2" 212 | { 213 | "AssemblyRegister" = "3:1" 214 | "AssemblyIsInGAC" = "11:FALSE" 215 | "AssemblyAsmDisplayName" = "8:MaterialSkin, Version=2.1.2.0, Culture=neutral, processorArchitecture=MSIL" 216 | "ScatterAssemblies" 217 | { 218 | "_6C7F95FA2008EDFAE87C3ECEF01595A2" 219 | { 220 | "Name" = "8:MaterialSkin.dll" 221 | "Attributes" = "3:512" 222 | } 223 | } 224 | "SourcePath" = "8:MaterialSkin.dll" 225 | "TargetName" = "8:" 226 | "Tag" = "8:" 227 | "Folder" = "8:_C968909AB5804E62AA8E13F8B5497EDF" 228 | "Condition" = "8:" 229 | "Transitive" = "11:FALSE" 230 | "Vital" = "11:TRUE" 231 | "ReadOnly" = "11:FALSE" 232 | "Hidden" = "11:FALSE" 233 | "System" = "11:FALSE" 234 | "Permanent" = "11:FALSE" 235 | "SharedLegacy" = "11:FALSE" 236 | "PackageAs" = "3:1" 237 | "Register" = "3:1" 238 | "Exclude" = "11:FALSE" 239 | "IsDependency" = "11:TRUE" 240 | "IsolateTo" = "8:" 241 | } 242 | "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_C19AFD24BA233123BA37383CD863A660" 243 | { 244 | "AssemblyRegister" = "3:1" 245 | "AssemblyIsInGAC" = "11:FALSE" 246 | "AssemblyAsmDisplayName" = "8:Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL" 247 | "ScatterAssemblies" 248 | { 249 | "_C19AFD24BA233123BA37383CD863A660" 250 | { 251 | "Name" = "8:Newtonsoft.Json.dll" 252 | "Attributes" = "3:512" 253 | } 254 | } 255 | "SourcePath" = "8:Newtonsoft.Json.dll" 256 | "TargetName" = "8:" 257 | "Tag" = "8:" 258 | "Folder" = "8:_C968909AB5804E62AA8E13F8B5497EDF" 259 | "Condition" = "8:" 260 | "Transitive" = "11:FALSE" 261 | "Vital" = "11:TRUE" 262 | "ReadOnly" = "11:FALSE" 263 | "Hidden" = "11:FALSE" 264 | "System" = "11:FALSE" 265 | "Permanent" = "11:FALSE" 266 | "SharedLegacy" = "11:FALSE" 267 | "PackageAs" = "3:1" 268 | "Register" = "3:1" 269 | "Exclude" = "11:FALSE" 270 | "IsDependency" = "11:TRUE" 271 | "IsolateTo" = "8:" 272 | } 273 | "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_C6127D84699D51CA3AF41C710849F673" 274 | { 275 | "AssemblyRegister" = "3:1" 276 | "AssemblyIsInGAC" = "11:FALSE" 277 | "AssemblyAsmDisplayName" = "8:System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 278 | "ScatterAssemblies" 279 | { 280 | "_C6127D84699D51CA3AF41C710849F673" 281 | { 282 | "Name" = "8:System.Net.Http.dll" 283 | "Attributes" = "3:512" 284 | } 285 | } 286 | "SourcePath" = "8:System.Net.Http.dll" 287 | "TargetName" = "8:" 288 | "Tag" = "8:" 289 | "Folder" = "8:_C968909AB5804E62AA8E13F8B5497EDF" 290 | "Condition" = "8:" 291 | "Transitive" = "11:FALSE" 292 | "Vital" = "11:TRUE" 293 | "ReadOnly" = "11:FALSE" 294 | "Hidden" = "11:FALSE" 295 | "System" = "11:FALSE" 296 | "Permanent" = "11:FALSE" 297 | "SharedLegacy" = "11:FALSE" 298 | "PackageAs" = "3:1" 299 | "Register" = "3:1" 300 | "Exclude" = "11:FALSE" 301 | "IsDependency" = "11:TRUE" 302 | "IsolateTo" = "8:" 303 | } 304 | } 305 | "FileType" 306 | { 307 | } 308 | "Folder" 309 | { 310 | "{1525181F-901A-416C-8A58-119130FE478E}:_222EB8CA604041FEB62A74552AB147E8" 311 | { 312 | "Name" = "8:#1919" 313 | "AlwaysCreate" = "11:FALSE" 314 | "Condition" = "8:" 315 | "Transitive" = "11:FALSE" 316 | "Property" = "8:ProgramMenuFolder" 317 | "Folders" 318 | { 319 | "{9EF0B969-E518-4E46-987F-47570745A589}:_4E6DABE76ED3409F8771BE68FD07BEF5" 320 | { 321 | "Name" = "8:MathpixCsharp" 322 | "AlwaysCreate" = "11:FALSE" 323 | "Condition" = "8:" 324 | "Transitive" = "11:FALSE" 325 | "Property" = "8:_461661A6DB894A3AAC7C46B8DFE139DB" 326 | "Folders" 327 | { 328 | } 329 | } 330 | } 331 | } 332 | "{3C67513D-01DD-4637-8A68-80971EB9504F}:_C968909AB5804E62AA8E13F8B5497EDF" 333 | { 334 | "DefaultLocation" = "8:[ProgramFilesFolder]\\[ProductName]" 335 | "Name" = "8:#1925" 336 | "AlwaysCreate" = "11:FALSE" 337 | "Condition" = "8:" 338 | "Transitive" = "11:FALSE" 339 | "Property" = "8:TARGETDIR" 340 | "Folders" 341 | { 342 | } 343 | } 344 | "{1525181F-901A-416C-8A58-119130FE478E}:_E83F2D5A1DFE494CB51D944CACA4D1C0" 345 | { 346 | "Name" = "8:#1916" 347 | "AlwaysCreate" = "11:FALSE" 348 | "Condition" = "8:" 349 | "Transitive" = "11:FALSE" 350 | "Property" = "8:DesktopFolder" 351 | "Folders" 352 | { 353 | } 354 | } 355 | } 356 | "LaunchCondition" 357 | { 358 | } 359 | "Locator" 360 | { 361 | } 362 | "MsiBootstrapper" 363 | { 364 | "LangId" = "3:2052" 365 | "RequiresElevation" = "11:FALSE" 366 | } 367 | "Product" 368 | { 369 | "Name" = "8:Microsoft Visual Studio" 370 | "ProductName" = "8:MathpixCsharp" 371 | "ProductCode" = "8:{23CD71BA-71E2-44C6-B678-ABD0F95E5582}" 372 | "PackageCode" = "8:{71B9F92E-3E0D-4801-B478-4E8D4C5A8EE8}" 373 | "UpgradeCode" = "8:{3FF64C93-B1F5-4B2E-81C6-FA6D56BB4DD0}" 374 | "AspNetVersion" = "8:" 375 | "RestartWWWService" = "11:FALSE" 376 | "RemovePreviousVersions" = "11:TRUE" 377 | "DetectNewerInstalledVersion" = "11:TRUE" 378 | "InstallAllUsers" = "11:FALSE" 379 | "ProductVersion" = "8:0.0.7" 380 | "Manufacturer" = "8:itewqq" 381 | "ARPHELPTELEPHONE" = "8:" 382 | "ARPHELPLINK" = "8:" 383 | "Title" = "8:Setup" 384 | "Subject" = "8:" 385 | "ARPCONTACT" = "8:itewqq" 386 | "Keywords" = "8:" 387 | "ARPCOMMENTS" = "8:" 388 | "ARPURLINFOABOUT" = "8:https://github.com/itewqq/MathpixCsharp" 389 | "ARPPRODUCTICON" = "8:" 390 | "ARPIconIndex" = "3:0" 391 | "SearchPath" = "8:" 392 | "UseSystemSearchPath" = "11:TRUE" 393 | "TargetPlatform" = "3:1" 394 | "PreBuildEvent" = "8:" 395 | "PostBuildEvent" = "8:" 396 | "RunPostBuildEvent" = "3:0" 397 | } 398 | "Registry" 399 | { 400 | "HKLM" 401 | { 402 | "Keys" 403 | { 404 | "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_7AD835CAD4044A5A835096E7CC653D8B" 405 | { 406 | "Name" = "8:Software" 407 | "Condition" = "8:" 408 | "AlwaysCreate" = "11:FALSE" 409 | "DeleteAtUninstall" = "11:FALSE" 410 | "Transitive" = "11:FALSE" 411 | "Keys" 412 | { 413 | "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_F8FF239B8F7F43D1A7C455510428482A" 414 | { 415 | "Name" = "8:[Manufacturer]" 416 | "Condition" = "8:" 417 | "AlwaysCreate" = "11:FALSE" 418 | "DeleteAtUninstall" = "11:FALSE" 419 | "Transitive" = "11:FALSE" 420 | "Keys" 421 | { 422 | } 423 | "Values" 424 | { 425 | } 426 | } 427 | } 428 | "Values" 429 | { 430 | } 431 | } 432 | } 433 | } 434 | "HKCU" 435 | { 436 | "Keys" 437 | { 438 | "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_A239E3017CE94CE08B97DB360986C582" 439 | { 440 | "Name" = "8:Software" 441 | "Condition" = "8:" 442 | "AlwaysCreate" = "11:FALSE" 443 | "DeleteAtUninstall" = "11:FALSE" 444 | "Transitive" = "11:FALSE" 445 | "Keys" 446 | { 447 | "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_7679A86465694B75828EBBCACA208DA9" 448 | { 449 | "Name" = "8:[Manufacturer]" 450 | "Condition" = "8:" 451 | "AlwaysCreate" = "11:FALSE" 452 | "DeleteAtUninstall" = "11:FALSE" 453 | "Transitive" = "11:FALSE" 454 | "Keys" 455 | { 456 | } 457 | "Values" 458 | { 459 | } 460 | } 461 | } 462 | "Values" 463 | { 464 | } 465 | } 466 | } 467 | } 468 | "HKCR" 469 | { 470 | "Keys" 471 | { 472 | } 473 | } 474 | "HKU" 475 | { 476 | "Keys" 477 | { 478 | } 479 | } 480 | "HKPU" 481 | { 482 | "Keys" 483 | { 484 | } 485 | } 486 | } 487 | "Sequences" 488 | { 489 | } 490 | "Shortcut" 491 | { 492 | "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_161F1FD2BE064E159D7FB093B76E2589" 493 | { 494 | "Name" = "8:MathpixCsharp" 495 | "Arguments" = "8:" 496 | "Description" = "8:" 497 | "ShowCmd" = "3:1" 498 | "IconIndex" = "3:0" 499 | "Transitive" = "11:FALSE" 500 | "Target" = "8:_921FF4E1967C4055AB8A3974C4D41F38" 501 | "Folder" = "8:_E83F2D5A1DFE494CB51D944CACA4D1C0" 502 | "WorkingFolder" = "8:_C968909AB5804E62AA8E13F8B5497EDF" 503 | "Icon" = "8:_5A5FACF2249C4EF5BFD7B407AA303466" 504 | "Feature" = "8:" 505 | } 506 | "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_AECAD747A60D41F18295605363E0965C" 507 | { 508 | "Name" = "8:卸载" 509 | "Arguments" = "8:/x {1D33C27C-BBCB-4F2B-9567-B3444B4A8EDE}" 510 | "Description" = "8:" 511 | "ShowCmd" = "3:1" 512 | "IconIndex" = "3:0" 513 | "Transitive" = "11:FALSE" 514 | "Target" = "8:_2A2B422351DC4BEEA3E3F6778FC2E2A6" 515 | "Folder" = "8:_4E6DABE76ED3409F8771BE68FD07BEF5" 516 | "WorkingFolder" = "8:_C968909AB5804E62AA8E13F8B5497EDF" 517 | "Icon" = "8:" 518 | "Feature" = "8:" 519 | } 520 | "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_E73EE503EB174F048112C0B3D69477A4" 521 | { 522 | "Name" = "8:MathpixCsharp" 523 | "Arguments" = "8:" 524 | "Description" = "8:" 525 | "ShowCmd" = "3:1" 526 | "IconIndex" = "3:0" 527 | "Transitive" = "11:FALSE" 528 | "Target" = "8:_921FF4E1967C4055AB8A3974C4D41F38" 529 | "Folder" = "8:_4E6DABE76ED3409F8771BE68FD07BEF5" 530 | "WorkingFolder" = "8:_C968909AB5804E62AA8E13F8B5497EDF" 531 | "Icon" = "8:_5A5FACF2249C4EF5BFD7B407AA303466" 532 | "Feature" = "8:" 533 | } 534 | } 535 | "UserInterface" 536 | { 537 | "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_0252E0E005E646388400691011EB8771" 538 | { 539 | "Name" = "8:#1900" 540 | "Sequence" = "3:2" 541 | "Attributes" = "3:1" 542 | "Dialogs" 543 | { 544 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_A80EB7B8ED63499EA65E156BABC30B39" 545 | { 546 | "Sequence" = "3:100" 547 | "DisplayName" = "8:欢迎使用" 548 | "UseDynamicProperties" = "11:TRUE" 549 | "IsDependency" = "11:FALSE" 550 | "SourcePath" = "8:\\VsdAdminWelcomeDlg.wid" 551 | "Properties" 552 | { 553 | "BannerBitmap" 554 | { 555 | "Name" = "8:BannerBitmap" 556 | "DisplayName" = "8:#1001" 557 | "Description" = "8:#1101" 558 | "Type" = "3:8" 559 | "ContextData" = "8:Bitmap" 560 | "Attributes" = "3:4" 561 | "Setting" = "3:1" 562 | "UsePlugInResources" = "11:TRUE" 563 | } 564 | "CopyrightWarning" 565 | { 566 | "Name" = "8:CopyrightWarning" 567 | "DisplayName" = "8:#1002" 568 | "Description" = "8:#1102" 569 | "Type" = "3:3" 570 | "ContextData" = "8:" 571 | "Attributes" = "3:0" 572 | "Setting" = "3:1" 573 | "Value" = "8:#1202" 574 | "DefaultValue" = "8:#1202" 575 | "UsePlugInResources" = "11:TRUE" 576 | } 577 | "Welcome" 578 | { 579 | "Name" = "8:Welcome" 580 | "DisplayName" = "8:#1003" 581 | "Description" = "8:#1103" 582 | "Type" = "3:3" 583 | "ContextData" = "8:" 584 | "Attributes" = "3:0" 585 | "Setting" = "3:1" 586 | "Value" = "8:#1203" 587 | "DefaultValue" = "8:#1203" 588 | "UsePlugInResources" = "11:TRUE" 589 | } 590 | } 591 | } 592 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_AB25799D1AED449BA77C3144690258CE" 593 | { 594 | "Sequence" = "3:200" 595 | "DisplayName" = "8:安装文件夹" 596 | "UseDynamicProperties" = "11:TRUE" 597 | "IsDependency" = "11:FALSE" 598 | "SourcePath" = "8:\\VsdAdminFolderDlg.wid" 599 | "Properties" 600 | { 601 | "BannerBitmap" 602 | { 603 | "Name" = "8:BannerBitmap" 604 | "DisplayName" = "8:#1001" 605 | "Description" = "8:#1101" 606 | "Type" = "3:8" 607 | "ContextData" = "8:Bitmap" 608 | "Attributes" = "3:4" 609 | "Setting" = "3:1" 610 | "UsePlugInResources" = "11:TRUE" 611 | } 612 | } 613 | } 614 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_B976FF7BF18C402E880515EE060E20BE" 615 | { 616 | "Sequence" = "3:300" 617 | "DisplayName" = "8:确认安装" 618 | "UseDynamicProperties" = "11:TRUE" 619 | "IsDependency" = "11:FALSE" 620 | "SourcePath" = "8:\\VsdAdminConfirmDlg.wid" 621 | "Properties" 622 | { 623 | "BannerBitmap" 624 | { 625 | "Name" = "8:BannerBitmap" 626 | "DisplayName" = "8:#1001" 627 | "Description" = "8:#1101" 628 | "Type" = "3:8" 629 | "ContextData" = "8:Bitmap" 630 | "Attributes" = "3:4" 631 | "Setting" = "3:1" 632 | "UsePlugInResources" = "11:TRUE" 633 | } 634 | } 635 | } 636 | } 637 | } 638 | "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_0CE5EE31BC0544F3AD5F837068D37566" 639 | { 640 | "Name" = "8:#1901" 641 | "Sequence" = "3:2" 642 | "Attributes" = "3:2" 643 | "Dialogs" 644 | { 645 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_EFDE37705796484EABB60CCE177E3BCA" 646 | { 647 | "Sequence" = "3:100" 648 | "DisplayName" = "8:进度" 649 | "UseDynamicProperties" = "11:TRUE" 650 | "IsDependency" = "11:FALSE" 651 | "SourcePath" = "8:\\VsdAdminProgressDlg.wid" 652 | "Properties" 653 | { 654 | "BannerBitmap" 655 | { 656 | "Name" = "8:BannerBitmap" 657 | "DisplayName" = "8:#1001" 658 | "Description" = "8:#1101" 659 | "Type" = "3:8" 660 | "ContextData" = "8:Bitmap" 661 | "Attributes" = "3:4" 662 | "Setting" = "3:1" 663 | "UsePlugInResources" = "11:TRUE" 664 | } 665 | "ShowProgress" 666 | { 667 | "Name" = "8:ShowProgress" 668 | "DisplayName" = "8:#1009" 669 | "Description" = "8:#1109" 670 | "Type" = "3:5" 671 | "ContextData" = "8:1;True=1;False=0" 672 | "Attributes" = "3:0" 673 | "Setting" = "3:0" 674 | "Value" = "3:1" 675 | "DefaultValue" = "3:1" 676 | "UsePlugInResources" = "11:TRUE" 677 | } 678 | } 679 | } 680 | } 681 | } 682 | "{2479F3F5-0309-486D-8047-8187E2CE5BA0}:_459C92F2FF3245139EDF0CF06682E247" 683 | { 684 | "UseDynamicProperties" = "11:FALSE" 685 | "IsDependency" = "11:FALSE" 686 | "SourcePath" = "8:\\VsdBasicDialogs.wim" 687 | } 688 | "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_6D622DA10D4542B0B3255023F9C7FEBB" 689 | { 690 | "Name" = "8:#1902" 691 | "Sequence" = "3:1" 692 | "Attributes" = "3:3" 693 | "Dialogs" 694 | { 695 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_F21141209CB34326B2E99AEF9003FC17" 696 | { 697 | "Sequence" = "3:100" 698 | "DisplayName" = "8:已完成" 699 | "UseDynamicProperties" = "11:TRUE" 700 | "IsDependency" = "11:FALSE" 701 | "SourcePath" = "8:\\VsdFinishedDlg.wid" 702 | "Properties" 703 | { 704 | "BannerBitmap" 705 | { 706 | "Name" = "8:BannerBitmap" 707 | "DisplayName" = "8:#1001" 708 | "Description" = "8:#1101" 709 | "Type" = "3:8" 710 | "ContextData" = "8:Bitmap" 711 | "Attributes" = "3:4" 712 | "Setting" = "3:1" 713 | "UsePlugInResources" = "11:TRUE" 714 | } 715 | "UpdateText" 716 | { 717 | "Name" = "8:UpdateText" 718 | "DisplayName" = "8:#1058" 719 | "Description" = "8:#1158" 720 | "Type" = "3:15" 721 | "ContextData" = "8:" 722 | "Attributes" = "3:0" 723 | "Setting" = "3:1" 724 | "Value" = "8:#1258" 725 | "DefaultValue" = "8:#1258" 726 | "UsePlugInResources" = "11:TRUE" 727 | } 728 | } 729 | } 730 | } 731 | } 732 | "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_A5082B2DED1741B7B5C8F923FE3CD3A8" 733 | { 734 | "Name" = "8:#1900" 735 | "Sequence" = "3:1" 736 | "Attributes" = "3:1" 737 | "Dialogs" 738 | { 739 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_0425C92F447247B49CD8AC0ABD1D0BD0" 740 | { 741 | "Sequence" = "3:200" 742 | "DisplayName" = "8:安装文件夹" 743 | "UseDynamicProperties" = "11:TRUE" 744 | "IsDependency" = "11:FALSE" 745 | "SourcePath" = "8:\\VsdFolderDlg.wid" 746 | "Properties" 747 | { 748 | "BannerBitmap" 749 | { 750 | "Name" = "8:BannerBitmap" 751 | "DisplayName" = "8:#1001" 752 | "Description" = "8:#1101" 753 | "Type" = "3:8" 754 | "ContextData" = "8:Bitmap" 755 | "Attributes" = "3:4" 756 | "Setting" = "3:1" 757 | "UsePlugInResources" = "11:TRUE" 758 | } 759 | "InstallAllUsersVisible" 760 | { 761 | "Name" = "8:InstallAllUsersVisible" 762 | "DisplayName" = "8:#1059" 763 | "Description" = "8:#1159" 764 | "Type" = "3:5" 765 | "ContextData" = "8:1;True=1;False=0" 766 | "Attributes" = "3:0" 767 | "Setting" = "3:0" 768 | "Value" = "3:1" 769 | "DefaultValue" = "3:1" 770 | "UsePlugInResources" = "11:TRUE" 771 | } 772 | } 773 | } 774 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_4C76D5E36F8148C8974D514CA4814E3C" 775 | { 776 | "Sequence" = "3:300" 777 | "DisplayName" = "8:确认安装" 778 | "UseDynamicProperties" = "11:TRUE" 779 | "IsDependency" = "11:FALSE" 780 | "SourcePath" = "8:\\VsdConfirmDlg.wid" 781 | "Properties" 782 | { 783 | "BannerBitmap" 784 | { 785 | "Name" = "8:BannerBitmap" 786 | "DisplayName" = "8:#1001" 787 | "Description" = "8:#1101" 788 | "Type" = "3:8" 789 | "ContextData" = "8:Bitmap" 790 | "Attributes" = "3:4" 791 | "Setting" = "3:1" 792 | "UsePlugInResources" = "11:TRUE" 793 | } 794 | } 795 | } 796 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_55AB0B67C7CA44D58AC2C92ED9F8B27E" 797 | { 798 | "Sequence" = "3:100" 799 | "DisplayName" = "8:欢迎使用" 800 | "UseDynamicProperties" = "11:TRUE" 801 | "IsDependency" = "11:FALSE" 802 | "SourcePath" = "8:\\VsdWelcomeDlg.wid" 803 | "Properties" 804 | { 805 | "BannerBitmap" 806 | { 807 | "Name" = "8:BannerBitmap" 808 | "DisplayName" = "8:#1001" 809 | "Description" = "8:#1101" 810 | "Type" = "3:8" 811 | "ContextData" = "8:Bitmap" 812 | "Attributes" = "3:4" 813 | "Setting" = "3:1" 814 | "UsePlugInResources" = "11:TRUE" 815 | } 816 | "CopyrightWarning" 817 | { 818 | "Name" = "8:CopyrightWarning" 819 | "DisplayName" = "8:#1002" 820 | "Description" = "8:#1102" 821 | "Type" = "3:3" 822 | "ContextData" = "8:" 823 | "Attributes" = "3:0" 824 | "Setting" = "3:1" 825 | "Value" = "8:#1202" 826 | "DefaultValue" = "8:#1202" 827 | "UsePlugInResources" = "11:TRUE" 828 | } 829 | "Welcome" 830 | { 831 | "Name" = "8:Welcome" 832 | "DisplayName" = "8:#1003" 833 | "Description" = "8:#1103" 834 | "Type" = "3:3" 835 | "ContextData" = "8:" 836 | "Attributes" = "3:0" 837 | "Setting" = "3:1" 838 | "Value" = "8:#1203" 839 | "DefaultValue" = "8:#1203" 840 | "UsePlugInResources" = "11:TRUE" 841 | } 842 | } 843 | } 844 | } 845 | } 846 | "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_C3D7862D5E964639B2B82BF521574880" 847 | { 848 | "Name" = "8:#1902" 849 | "Sequence" = "3:2" 850 | "Attributes" = "3:3" 851 | "Dialogs" 852 | { 853 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_B40F51B973FB4B48B13C8ECE7FDE7868" 854 | { 855 | "Sequence" = "3:100" 856 | "DisplayName" = "8:已完成" 857 | "UseDynamicProperties" = "11:TRUE" 858 | "IsDependency" = "11:FALSE" 859 | "SourcePath" = "8:\\VsdAdminFinishedDlg.wid" 860 | "Properties" 861 | { 862 | "BannerBitmap" 863 | { 864 | "Name" = "8:BannerBitmap" 865 | "DisplayName" = "8:#1001" 866 | "Description" = "8:#1101" 867 | "Type" = "3:8" 868 | "ContextData" = "8:Bitmap" 869 | "Attributes" = "3:4" 870 | "Setting" = "3:1" 871 | "UsePlugInResources" = "11:TRUE" 872 | } 873 | } 874 | } 875 | } 876 | } 877 | "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_E4A73200C4C24B11B5BE8511FB4C43EA" 878 | { 879 | "Name" = "8:#1901" 880 | "Sequence" = "3:1" 881 | "Attributes" = "3:2" 882 | "Dialogs" 883 | { 884 | "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_4F556CD617FF4B65B5C6BC845E1254F0" 885 | { 886 | "Sequence" = "3:100" 887 | "DisplayName" = "8:进度" 888 | "UseDynamicProperties" = "11:TRUE" 889 | "IsDependency" = "11:FALSE" 890 | "SourcePath" = "8:\\VsdProgressDlg.wid" 891 | "Properties" 892 | { 893 | "BannerBitmap" 894 | { 895 | "Name" = "8:BannerBitmap" 896 | "DisplayName" = "8:#1001" 897 | "Description" = "8:#1101" 898 | "Type" = "3:8" 899 | "ContextData" = "8:Bitmap" 900 | "Attributes" = "3:4" 901 | "Setting" = "3:1" 902 | "UsePlugInResources" = "11:TRUE" 903 | } 904 | "ShowProgress" 905 | { 906 | "Name" = "8:ShowProgress" 907 | "DisplayName" = "8:#1009" 908 | "Description" = "8:#1109" 909 | "Type" = "3:5" 910 | "ContextData" = "8:1;True=1;False=0" 911 | "Attributes" = "3:0" 912 | "Setting" = "3:0" 913 | "Value" = "3:1" 914 | "DefaultValue" = "3:1" 915 | "UsePlugInResources" = "11:TRUE" 916 | } 917 | } 918 | } 919 | } 920 | } 921 | "{2479F3F5-0309-486D-8047-8187E2CE5BA0}:_F5A186BC42AD49DE9FBD1409F946F11A" 922 | { 923 | "UseDynamicProperties" = "11:FALSE" 924 | "IsDependency" = "11:FALSE" 925 | "SourcePath" = "8:\\VsdUserInterface.wim" 926 | } 927 | } 928 | "MergeModule" 929 | { 930 | } 931 | "ProjectOutput" 932 | { 933 | "{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_921FF4E1967C4055AB8A3974C4D41F38" 934 | { 935 | "SourcePath" = "8:" 936 | "TargetName" = "8:" 937 | "Tag" = "8:" 938 | "Folder" = "8:_C968909AB5804E62AA8E13F8B5497EDF" 939 | "Condition" = "8:" 940 | "Transitive" = "11:FALSE" 941 | "Vital" = "11:TRUE" 942 | "ReadOnly" = "11:FALSE" 943 | "Hidden" = "11:FALSE" 944 | "System" = "11:FALSE" 945 | "Permanent" = "11:FALSE" 946 | "SharedLegacy" = "11:FALSE" 947 | "PackageAs" = "3:1" 948 | "Register" = "3:1" 949 | "Exclude" = "11:FALSE" 950 | "IsDependency" = "11:FALSE" 951 | "IsolateTo" = "8:" 952 | "ProjectOutputGroupRegister" = "3:1" 953 | "OutputConfiguration" = "8:" 954 | "OutputGroupCanonicalName" = "8:Built" 955 | "OutputProjectGuid" = "8:{7F677AF7-C758-4970-9FD7-8C1F08B9399A}" 956 | "ShowKeyOutput" = "11:TRUE" 957 | "ExcludeFilters" 958 | { 959 | } 960 | } 961 | } 962 | } 963 | } 964 | -------------------------------------------------------------------------------- /ThirdpartyApi.md: -------------------------------------------------------------------------------- 1 | ### 使用第三方API教程 2 | 3 | 1. 到 https://mathf.xyz/ 购买app_id 和 app_key,**如果你是第一次购买请认真阅读公告** 4 | 5 | 3. 按照[安装教程](https://github.com/itewqq/MathpixCsharp/blob/master/README.md)装好客户端。安装完之后如果没找到在哪儿启动请打开```开始```进行查找。 6 | 4. 第一次打开会弹出在名为```login```的窗口,在里面填入之前的app_id和app_key,**下方的复选框选择```第三方Key```**,**注意不要选错**,选错了会导致无法使用。然后点击确认。只需要填一次之后再打开就不用填了。如果填错了或者要更换Key可以在主界面点击```菜单->重置Key```。 7 | 8 | ![image.png](https://i.loli.net/2021/02/19/rbQ4LYlG37OqywS.png) 9 | 10 | > 强调一下,无论使用官方API还是第三方API,使用本客户端必须要填入两个字段,app_id和app_key。注意是**两个字段**,app_id和app_key,我觉得在教程里以及第三方的公告里已经写得很清楚了,不知道为什么很多人还是只填一个app_key,或者根本不填,或者没有把卡密的格式处理好直接带四个#来填进去,然后来找我发邮件问为什么不能用= = 11 | 12 | 5. 客户端主界面如下图,使用第三方Api的时候右上角会显示当前Key的剩余使用次数: 13 | 14 | ![image.png](https://i.loli.net/2021/02/19/ucQt4NAfgOnGP2X.png) 15 | 16 | 6. 使用时需要先截屏选择要识别的公式。点击**截屏按钮**或者使用**快捷键Ctrl+Alt+Q** (0.0.6及之前的版本是Ctrl+Alt+M)开始截屏。进入截屏模式时,**鼠标会变成十字形**,如果进入截屏模式后不想截屏了,可以**按右键取消截屏**。截屏过程类似QQ的截屏功能,鼠标按下开始截屏,拖动选择区域,松开完成截屏。 17 | 7. 截屏完成后客户端会自动完成识别,并将识别结果置于文本框内,点击文本框对应的按钮可以复制到剪贴板。为了方便使用,**默认情况下程序会自动把inline的公式复制到剪贴板,无需点击按钮**,如果点击了按钮,则之后的默认复制会记住本次的选择,在之后的自动复制中会选取该选择进行自动复制。完整的演示流程参考下图: 18 | ![使用演示](/images/demo1.gif) 19 | 20 | 8. 当点击关闭窗口的时候,MathpixCsharp会自动最小化到系统托盘,**如果要退出客户端,请右键系统托盘上的客户端图标再选择退出。** 21 | 9. **关于Office Word中的公式**:Word用户请点击**复制MathML**按钮,然后在word文档里**右键->粘贴->仅粘贴文本**。有时候Ctrl+V会有问题,但是现在这个问题貌似很少出现了。另外,由于Word自身处理公式的问题,有时候一些带括号的公式可能会出现这种情况: 22 | ![image.png](https://i.loli.net/2021/02/19/yKu7RCmknDGNz8V.png)这时候只需要把**光标放在公式最后面,敲一下回车**就好了。如果还有问题,就把**光标放在异常的括号后面,点一下空格**就好了。 23 | 24 | 注: 使用**多个显示器**时,MathpixCsharp将选择**其窗体当前所在的屏幕**进行截屏。 -------------------------------------------------------------------------------- /WindowsFormsApp1/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | True 25 | 26 | 27 | 0 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace MathpixCsharp 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// 必需的设计器变量。 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// 清理所有正在使用的资源。 12 | /// 13 | /// 如果应释放托管资源,为 true;否则为 false。 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows 窗体设计器生成的代码 24 | 25 | /// 26 | /// 设计器支持所需的方法 - 不要修改 27 | /// 使用代码编辑器修改此方法的内容。 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); 33 | this.button1 = new System.Windows.Forms.Button(); 34 | this.textBox1 = new System.Windows.Forms.TextBox(); 35 | this.button2 = new System.Windows.Forms.Button(); 36 | this.panel1 = new System.Windows.Forms.Panel(); 37 | this.label1 = new System.Windows.Forms.Label(); 38 | this.labelUses = new System.Windows.Forms.Label(); 39 | this.button5 = new System.Windows.Forms.Button(); 40 | this.button4 = new System.Windows.Forms.Button(); 41 | this.button3 = new System.Windows.Forms.Button(); 42 | this.textBox3 = new System.Windows.Forms.TextBox(); 43 | this.textBox2 = new System.Windows.Forms.TextBox(); 44 | this.pictureBox1 = new System.Windows.Forms.PictureBox(); 45 | this.menuStrip1 = new System.Windows.Forms.MenuStrip(); 46 | this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 47 | this.重置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 48 | this.购买第三方KeyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 49 | this.检查更新ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 50 | this.捐赠ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 51 | this.退出程序ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 52 | this.帮助ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 53 | this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); 54 | this.panel1.SuspendLayout(); 55 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); 56 | this.menuStrip1.SuspendLayout(); 57 | this.SuspendLayout(); 58 | // 59 | // button1 60 | // 61 | this.button1.Location = new System.Drawing.Point(48, 318); 62 | this.button1.Margin = new System.Windows.Forms.Padding(2); 63 | this.button1.Name = "button1"; 64 | this.button1.Size = new System.Drawing.Size(136, 42); 65 | this.button1.TabIndex = 0; 66 | this.button1.Text = "截屏"; 67 | this.button1.UseVisualStyleBackColor = true; 68 | this.button1.Click += new System.EventHandler(this.button1_Click); 69 | // 70 | // textBox1 71 | // 72 | this.textBox1.Location = new System.Drawing.Point(10, 208); 73 | this.textBox1.Margin = new System.Windows.Forms.Padding(2); 74 | this.textBox1.Name = "textBox1"; 75 | this.textBox1.Size = new System.Drawing.Size(359, 21); 76 | this.textBox1.TabIndex = 1; 77 | // 78 | // button2 79 | // 80 | this.button2.Location = new System.Drawing.Point(287, 318); 81 | this.button2.Margin = new System.Windows.Forms.Padding(2); 82 | this.button2.Name = "button2"; 83 | this.button2.Size = new System.Drawing.Size(133, 42); 84 | this.button2.TabIndex = 2; 85 | this.button2.Text = "重试请求"; 86 | this.button2.UseVisualStyleBackColor = true; 87 | this.button2.Click += new System.EventHandler(this.button2_Click); 88 | // 89 | // panel1 90 | // 91 | this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 92 | | System.Windows.Forms.AnchorStyles.Left) 93 | | System.Windows.Forms.AnchorStyles.Right))); 94 | this.panel1.Controls.Add(this.label1); 95 | this.panel1.Controls.Add(this.labelUses); 96 | this.panel1.Controls.Add(this.button5); 97 | this.panel1.Controls.Add(this.button4); 98 | this.panel1.Controls.Add(this.button3); 99 | this.panel1.Controls.Add(this.textBox3); 100 | this.panel1.Controls.Add(this.textBox2); 101 | this.panel1.Controls.Add(this.pictureBox1); 102 | this.panel1.Controls.Add(this.button1); 103 | this.panel1.Controls.Add(this.button2); 104 | this.panel1.Controls.Add(this.textBox1); 105 | this.panel1.Controls.Add(this.menuStrip1); 106 | this.panel1.Location = new System.Drawing.Point(1, -2); 107 | this.panel1.Margin = new System.Windows.Forms.Padding(2); 108 | this.panel1.Name = "panel1"; 109 | this.panel1.Size = new System.Drawing.Size(485, 377); 110 | this.panel1.TabIndex = 3; 111 | // 112 | // label1 113 | // 114 | this.label1.AutoSize = true; 115 | this.label1.Location = new System.Drawing.Point(367, 5); 116 | this.label1.Name = "label1"; 117 | this.label1.Size = new System.Drawing.Size(53, 12); 118 | this.label1.TabIndex = 10; 119 | this.label1.Text = "剩余次数"; 120 | // 121 | // labelUses 122 | // 123 | this.labelUses.AutoSize = true; 124 | this.labelUses.Location = new System.Drawing.Point(427, 5); 125 | this.labelUses.Name = "labelUses"; 126 | this.labelUses.Size = new System.Drawing.Size(23, 12); 127 | this.labelUses.TabIndex = 9; 128 | this.labelUses.Text = "INF"; 129 | // 130 | // button5 131 | // 132 | this.button5.Location = new System.Drawing.Point(388, 283); 133 | this.button5.Margin = new System.Windows.Forms.Padding(2); 134 | this.button5.Name = "button5"; 135 | this.button5.Size = new System.Drawing.Size(81, 29); 136 | this.button5.TabIndex = 8; 137 | this.button5.Text = "复制MathML"; 138 | this.button5.UseVisualStyleBackColor = true; 139 | this.button5.Click += new System.EventHandler(this.button5_Click); 140 | // 141 | // button4 142 | // 143 | this.button4.Location = new System.Drawing.Point(388, 243); 144 | this.button4.Margin = new System.Windows.Forms.Padding(2); 145 | this.button4.Name = "button4"; 146 | this.button4.Size = new System.Drawing.Size(81, 29); 147 | this.button4.TabIndex = 7; 148 | this.button4.Text = "Equation"; 149 | this.button4.UseVisualStyleBackColor = true; 150 | this.button4.Click += new System.EventHandler(this.button4_Click); 151 | // 152 | // button3 153 | // 154 | this.button3.Location = new System.Drawing.Point(388, 199); 155 | this.button3.Margin = new System.Windows.Forms.Padding(2); 156 | this.button3.Name = "button3"; 157 | this.button3.Size = new System.Drawing.Size(81, 30); 158 | this.button3.TabIndex = 6; 159 | this.button3.Text = "复制inline"; 160 | this.button3.UseVisualStyleBackColor = true; 161 | this.button3.Click += new System.EventHandler(this.button3_Click); 162 | // 163 | // textBox3 164 | // 165 | this.textBox3.Location = new System.Drawing.Point(10, 283); 166 | this.textBox3.Margin = new System.Windows.Forms.Padding(2); 167 | this.textBox3.Name = "textBox3"; 168 | this.textBox3.Size = new System.Drawing.Size(359, 21); 169 | this.textBox3.TabIndex = 5; 170 | // 171 | // textBox2 172 | // 173 | this.textBox2.Location = new System.Drawing.Point(10, 243); 174 | this.textBox2.Margin = new System.Windows.Forms.Padding(2); 175 | this.textBox2.Name = "textBox2"; 176 | this.textBox2.Size = new System.Drawing.Size(359, 21); 177 | this.textBox2.TabIndex = 4; 178 | // 179 | // pictureBox1 180 | // 181 | this.pictureBox1.InitialImage = global::MathpixCsharp.Properties.Resources._default; 182 | this.pictureBox1.Location = new System.Drawing.Point(10, 23); 183 | this.pictureBox1.Margin = new System.Windows.Forms.Padding(2); 184 | this.pictureBox1.Name = "pictureBox1"; 185 | this.pictureBox1.Size = new System.Drawing.Size(466, 162); 186 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; 187 | this.pictureBox1.TabIndex = 3; 188 | this.pictureBox1.TabStop = false; 189 | // 190 | // menuStrip1 191 | // 192 | this.menuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24); 193 | this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 194 | this.ToolStripMenuItem, 195 | this.帮助ToolStripMenuItem1}); 196 | this.menuStrip1.Location = new System.Drawing.Point(0, 0); 197 | this.menuStrip1.Name = "menuStrip1"; 198 | this.menuStrip1.Padding = new System.Windows.Forms.Padding(4, 1, 0, 1); 199 | this.menuStrip1.Size = new System.Drawing.Size(485, 24); 200 | this.menuStrip1.TabIndex = 0; 201 | this.menuStrip1.Text = "menuStrip1"; 202 | // 203 | // ToolStripMenuItem 204 | // 205 | this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 206 | this.重置ToolStripMenuItem, 207 | this.购买第三方KeyToolStripMenuItem, 208 | this.检查更新ToolStripMenuItem, 209 | this.捐赠ToolStripMenuItem, 210 | this.退出程序ToolStripMenuItem}); 211 | this.ToolStripMenuItem.Name = "ToolStripMenuItem"; 212 | this.ToolStripMenuItem.Size = new System.Drawing.Size(44, 22); 213 | this.ToolStripMenuItem.Text = "菜单"; 214 | // 215 | // 重置ToolStripMenuItem 216 | // 217 | this.重置ToolStripMenuItem.Name = "重置ToolStripMenuItem"; 218 | this.重置ToolStripMenuItem.Size = new System.Drawing.Size(157, 22); 219 | this.重置ToolStripMenuItem.Text = "重置Key"; 220 | this.重置ToolStripMenuItem.Click += new System.EventHandler(this.重置ToolStripMenuItem_Click); 221 | // 222 | // 购买第三方KeyToolStripMenuItem 223 | // 224 | this.购买第三方KeyToolStripMenuItem.Name = "购买第三方KeyToolStripMenuItem"; 225 | this.购买第三方KeyToolStripMenuItem.Size = new System.Drawing.Size(157, 22); 226 | this.购买第三方KeyToolStripMenuItem.Text = "购买第三方Key"; 227 | this.购买第三方KeyToolStripMenuItem.Click += new System.EventHandler(this.购买第三方KeyToolStripMenuItem_Click); 228 | // 229 | // 检查更新ToolStripMenuItem 230 | // 231 | this.检查更新ToolStripMenuItem.Name = "检查更新ToolStripMenuItem"; 232 | this.检查更新ToolStripMenuItem.Size = new System.Drawing.Size(157, 22); 233 | this.检查更新ToolStripMenuItem.Text = "检查更新"; 234 | this.检查更新ToolStripMenuItem.Click += new System.EventHandler(this.检查更新ToolStripMenuItem_Click); 235 | // 236 | // 捐赠ToolStripMenuItem 237 | // 238 | this.捐赠ToolStripMenuItem.Name = "捐赠ToolStripMenuItem"; 239 | this.捐赠ToolStripMenuItem.Size = new System.Drawing.Size(157, 22); 240 | this.捐赠ToolStripMenuItem.Text = "捐赠"; 241 | this.捐赠ToolStripMenuItem.Click += new System.EventHandler(this.捐赠ToolStripMenuItem_Click); 242 | // 243 | // 退出程序ToolStripMenuItem 244 | // 245 | this.退出程序ToolStripMenuItem.Name = "退出程序ToolStripMenuItem"; 246 | this.退出程序ToolStripMenuItem.Size = new System.Drawing.Size(157, 22); 247 | this.退出程序ToolStripMenuItem.Text = "退出程序"; 248 | this.退出程序ToolStripMenuItem.Click += new System.EventHandler(this.退出程序ToolStripMenuItem_Click); 249 | // 250 | // 帮助ToolStripMenuItem1 251 | // 252 | this.帮助ToolStripMenuItem1.Name = "帮助ToolStripMenuItem1"; 253 | this.帮助ToolStripMenuItem1.Size = new System.Drawing.Size(68, 22); 254 | this.帮助ToolStripMenuItem1.Text = "使用说明"; 255 | this.帮助ToolStripMenuItem1.Click += new System.EventHandler(this.帮助ToolStripMenuItem1_Click); 256 | // 257 | // notifyIcon1 258 | // 259 | this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon"))); 260 | this.notifyIcon1.Text = "MathpixCsharp"; 261 | this.notifyIcon1.Visible = true; 262 | this.notifyIcon1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseClick); 263 | // 264 | // Form1 265 | // 266 | this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); 267 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; 268 | this.AutoSize = true; 269 | this.ClientSize = new System.Drawing.Size(486, 375); 270 | this.Controls.Add(this.panel1); 271 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 272 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 273 | this.KeyPreview = true; 274 | this.MainMenuStrip = this.menuStrip1; 275 | this.Margin = new System.Windows.Forms.Padding(2); 276 | this.MaximizeBox = false; 277 | this.Name = "Form1"; 278 | this.Text = "MathpixCsharp"; 279 | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); 280 | this.Load += new System.EventHandler(this.Form1_Load); 281 | this.panel1.ResumeLayout(false); 282 | this.panel1.PerformLayout(); 283 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); 284 | this.menuStrip1.ResumeLayout(false); 285 | this.menuStrip1.PerformLayout(); 286 | this.ResumeLayout(false); 287 | 288 | } 289 | 290 | #endregion 291 | 292 | private System.Windows.Forms.Button button1; 293 | private System.Windows.Forms.TextBox textBox1; 294 | private System.Windows.Forms.Button button2; 295 | private System.Windows.Forms.Panel panel1; 296 | private System.Windows.Forms.PictureBox pictureBox1; 297 | private System.Windows.Forms.TextBox textBox2; 298 | private System.Windows.Forms.TextBox textBox3; 299 | private System.Windows.Forms.Button button5; 300 | private System.Windows.Forms.Button button4; 301 | private System.Windows.Forms.Button button3; 302 | private System.Windows.Forms.MenuStrip menuStrip1; 303 | private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem; 304 | private System.Windows.Forms.ToolStripMenuItem 重置ToolStripMenuItem; 305 | private System.Windows.Forms.ToolStripMenuItem 检查更新ToolStripMenuItem; 306 | private System.Windows.Forms.NotifyIcon notifyIcon1; 307 | private System.Windows.Forms.ToolStripMenuItem 退出程序ToolStripMenuItem; 308 | private System.Windows.Forms.Label labelUses; 309 | private System.Windows.Forms.Label label1; 310 | private System.Windows.Forms.ToolStripMenuItem 购买第三方KeyToolStripMenuItem; 311 | private System.Windows.Forms.ToolStripMenuItem 捐赠ToolStripMenuItem; 312 | private System.Windows.Forms.ToolStripMenuItem 帮助ToolStripMenuItem1; 313 | } 314 | } 315 | 316 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Threading; 10 | using System.Windows.Forms; 11 | 12 | using MaterialSkin; 13 | using MaterialSkin.Controls; 14 | 15 | 16 | namespace MathpixCsharp 17 | { 18 | public partial class Form1 : MaterialForm 19 | { 20 | GetCode gg = new GetCode(); 21 | [System.Runtime.InteropServices.DllImport("user32.dll")] 22 | private static extern bool RegisterHotKey(IntPtr hWnd, int id, int fsModifiers, int vk); 23 | Bitmap bit; 24 | public bool success; 25 | public bool cancelled; 26 | int last_choice = 3; 27 | string app_id=""; 28 | string app_key = ""; 29 | 30 | public Bitmap Bit { get => bit; set => bit = value; } 31 | 32 | public Form1() 33 | { 34 | InitializeComponent(); 35 | var materialSkinManager = MaterialSkinManager.Instance; 36 | materialSkinManager.AddFormToManage(this); 37 | materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT; 38 | materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE); 39 | // handle the buttons' font 40 | button1.Font = new Font("Microsoft YaHei UI", 9f); 41 | button2.Font = new Font("Microsoft YaHei UI", 9f); 42 | button3.Font = new Font("Microsoft YaHei UI", 8f); 43 | button4.Font = new Font("Microsoft YaHei UI", 8f); 44 | button5.Font = new Font("Microsoft YaHei UI", 7f); 45 | menuStrip1.Font = new Font("Microsoft YaHei UI", 9f); 46 | labelUses.Font = new Font("Microsoft YaHei UI", 8f); 47 | label1.Font = new Font("Microsoft YaHei UI", 8f); 48 | this.StartPosition = FormStartPosition.CenterScreen; 49 | RegisterHotKey(this.Handle,0,1|2,(int)Keys.Q); 50 | } 51 | 52 | private void Form1_Load(object sender, EventArgs e) 53 | { 54 | if (Properties.Settings.Default.id == string.Empty) 55 | { 56 | login t = new login(); 57 | t.StartPosition = FormStartPosition.CenterParent; 58 | t.ShowDialog(); 59 | Properties.Settings.Default.Save(); 60 | } 61 | else 62 | { 63 | app_id = Properties.Settings.Default.id; 64 | app_key = Properties.Settings.Default.key; 65 | if (Properties.Settings.Default.isOfficial == false) 66 | { 67 | this.labelUses.Text = Properties.Settings.Default.uses; 68 | } 69 | //MessageBox.Show(app_id); 70 | } 71 | this.pictureBox1.Image = Properties.Resources._default; 72 | notifyIcon1.Visible = true; 73 | // notifyIcon1.ContextMenuStrip = this.menuStrip1.ContextMenuStrip; 74 | this.notifyIcon1.ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(); 75 | this.notifyIcon1.ContextMenuStrip.Items.Add("退出", null, this.TrayMenuExit); 76 | } 77 | 78 | private void CopyToClipboard(TextBox tb, Button bt) 79 | { 80 | try 81 | { 82 | Clipboard.SetText(tb.Text); 83 | bt.Text = "已复制"; 84 | } 85 | catch (System.ArgumentNullException) 86 | { 87 | MessageBox.Show("错误,代码为空!"); 88 | } 89 | } 90 | 91 | void TrayMenuExit(object sender, EventArgs e) 92 | { 93 | Application.Exit(); 94 | } 95 | 96 | protected override void WndProc(ref Message m) 97 | { 98 | base.WndProc(ref m); 99 | if(m.Msg== 0x0312 && m.WParam.ToInt32()==0) 100 | { 101 | Do_Work(); 102 | } 103 | } 104 | 105 | 106 | private async void ScreenShotToCode(Bitmap bit) 107 | { 108 | gg.SetImg(bit); 109 | try 110 | { 111 | List codeList = await gg.GetLatex(); 112 | textBox1.Text = codeList[0]; 113 | textBox2.Text = codeList[1]; 114 | textBox3.Text = codeList[2]; 115 | 116 | switch (last_choice) 117 | { 118 | case 3: 119 | CopyToClipboard(textBox1, button3); 120 | break; 121 | case 4: 122 | CopyToClipboard(textBox2, button4); 123 | break; 124 | case 5: 125 | CopyToClipboard(textBox3, button5); 126 | break; 127 | default: break; 128 | } 129 | 130 | if (!Properties.Settings.Default.isOfficial) 131 | { 132 | this.labelUses.Text = codeList[3]; 133 | Properties.Settings.Default.uses = codeList[3]; 134 | } 135 | } 136 | catch(Exception e) 137 | { 138 | MessageBox.Show(e.Message,"Error: {0}"); 139 | textBox1.Text = ""; 140 | textBox2.Text = ""; 141 | textBox3.Text = ""; 142 | } 143 | } 144 | 145 | private void Do_Work() 146 | { 147 | button2.Text = "重试"; 148 | textBox1.Text = ""; 149 | textBox2.Text = ""; 150 | textBox3.Text = ""; 151 | button3.Text = "复制inline"; 152 | button4.Text = "Equation"; 153 | button5.Text = "复制MathML"; 154 | ScreenShot sf = new ScreenShot(); 155 | sf.Owner = this; 156 | this.Opacity = 0.0; 157 | this.success = false; 158 | this.cancelled = false; 159 | sf.ShowDialog();//make sure it's done 160 | if (this.cancelled) 161 | { 162 | this.Opacity = 1.0; 163 | return; 164 | } 165 | if (!this.success) 166 | { 167 | this.Opacity = 1.0; 168 | MessageBox.Show("错误,请重试"); 169 | return; 170 | } 171 | this.pictureBox1.Image = Bit; 172 | ScreenShotToCode(Bit); 173 | this.Opacity = 1.0; 174 | if (this.Visible==false) 175 | { 176 | this.Show(); 177 | } 178 | if (this.WindowState == FormWindowState.Minimized) 179 | { 180 | this.WindowState = FormWindowState.Normal; 181 | } 182 | bool top = TopMost; 183 | TopMost = true; 184 | TopMost = top; 185 | } 186 | 187 | private void button1_Click(object sender, EventArgs e) 188 | { 189 | Do_Work(); 190 | } 191 | 192 | private void button2_Click(object sender, EventArgs e)//retry 193 | { 194 | try 195 | { 196 | ScreenShotToCode(Bit); 197 | } 198 | catch (System.ArgumentNullException) 199 | { 200 | MessageBox.Show("错误,请重试"); 201 | } 202 | 203 | } 204 | 205 | private void button3_Click(object sender, EventArgs e) 206 | { 207 | CopyToClipboard(textBox1,button3); 208 | last_choice = 3; 209 | } 210 | 211 | private void button4_Click(object sender, EventArgs e) 212 | { 213 | CopyToClipboard(textBox2,button4); 214 | last_choice = 4; 215 | } 216 | 217 | private void button5_Click(object sender, EventArgs e) 218 | { 219 | CopyToClipboard(textBox3,button5); 220 | last_choice = 5; 221 | } 222 | 223 | private void 检查更新ToolStripMenuItem_Click(object sender, EventArgs e) 224 | { 225 | System.Diagnostics.Process.Start("https://github.com/itewqq/MathpixCsharp/releases"); 226 | } 227 | 228 | private void 重置ToolStripMenuItem_Click(object sender, EventArgs e) 229 | { 230 | login t = new login(); 231 | t.StartPosition = FormStartPosition.CenterParent; 232 | t.ShowDialog(); 233 | Properties.Settings.Default.Save(); 234 | } 235 | 236 | private void Form1_FormClosing(object sender, FormClosingEventArgs e) 237 | { 238 | if (e.CloseReason == CloseReason.UserClosing) 239 | { 240 | e.Cancel = true; 241 | Hide(); 242 | } 243 | } 244 | 245 | private void 退出程序ToolStripMenuItem_Click(object sender, EventArgs e) 246 | { 247 | System.Windows.Forms.Application.Exit(); 248 | } 249 | 250 | private void notifyIcon1_MouseClick(object sender, MouseEventArgs e) 251 | { 252 | if (e.Button == MouseButtons.Left&&this.Visible==false) 253 | { 254 | this.Show(); 255 | } 256 | } 257 | 258 | private void 购买第三方KeyToolStripMenuItem_Click(object sender, EventArgs e) 259 | { 260 | System.Diagnostics.Process.Start("https://mathf.xyz/"); 261 | } 262 | 263 | private void 帮助ToolStripMenuItem1_Click(object sender, EventArgs e) 264 | { 265 | System.Diagnostics.Process.Start("https://github.com/itewqq/MathpixCsharp#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95"); 266 | } 267 | 268 | private void 捐赠ToolStripMenuItem_Click(object sender, EventArgs e) 269 | { 270 | System.Diagnostics.Process.Start("https://mathcode.herokuapp.com/hello"); 271 | } 272 | } 273 | } 274 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | 124 | 137, 17 125 | 126 | 127 | 128 | 129 | AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAACMuAAAjLgAAAAAAAAAA 130 | AAD/////////////////////////////////////////////////////+/v6//b08v/w7uv/7Orl/+rn 131 | 4v/p5uH/6ebh/+rn4v/s6uX/8O7r//b08v/7+/r///////////////////////////////////////// 132 | ////////////////////////////////////////////////////////+vr5//Lw7f/s6eX/6ebh/+nm 133 | 4f/p5uH/6ebh/+nm4f/p5uH/6ebh/+nm4f/p5uH/6ebh/+zp5f/y8O3/+vr5//////////////////// 134 | /////////////////////////////////////////////////////////v7+//b18v/t6+f/6+nk/+vp 135 | 5P/s6eT/7Onk/+zp5P/s6eT/7Onk/+zp5P/s6eT/7Onk/+zp5P/s6eT/6+nk/+vp5P/t6+f/9vXy//7+ 136 | /v////////////////////////////////+9sqf/t6qd/7eqnf+3qp3/t6qd/7eqnP+voZL/qpuL/6qb 137 | i/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qb 138 | i/+qm4v/r6GS/7eqnP+3qp3/t6qd/7eqnf+3qp3/vbKo/1I+J/9UZmr/VW13/1Vtdv9VbXb/VW12/1Vt 139 | df9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Zt 140 | dv9WbXb/Vm12/1Ztdv9VbXX/VW12/1Vtdv9VbXb/VW13/1Rmav9SPif/U0k4/1yu4f9ewf//XsD+/17A 141 | /v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A 142 | /v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewf//XK7h/1NJOP9TSTj/XK3g/16/ 143 | /v9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+ 144 | /P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16//v9creD/U0k4/1M/ 145 | J/9VYmL/Vmdr/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Zn 146 | av9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdr/1Vi 147 | Yv9UPyf/xbyy/4JuWP9/Vxr/qXki/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3 148 | H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6l5 149 | Iv9/Vxr/gm5Y/8W8sv//////npCB/5puIP/hqTb/5bhb/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6 150 | X//mul//5rpf/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6 151 | X//luFr/4Kk1/5puIP+ekIH///////39/P+YiXn/mW0f/+OyT//68+X//vz4//789//+/Pf//vz3//78 152 | 9//+/Pf//vz3//789//+/Pf//vz3//789//+/Pf//vz3//379v/9+/b//fv2//379v/9+/b//fv2//37 153 | 9v/9+/b//fz3//ny4f/isEr/mW0f/5iJef/9/fz/9/b1/5aGdf+ZbR//47NQ//757//Uzcf/mIh3/5iI 154 | d/+YiHf/mIh3/5iId/+YiHf/mIh3/5iId/+YiHf/mIh3/5eHdv/QyMH///////////////////////// 155 | ////////////////////////+/Xp/+KxS/+ZbR//loZ1//f29f/y8O3/lYZ1/5ltH//js1D//fjv/+Dc 156 | 1/+0qZz/tKmc/7SpnP+0qZz/tKmc/7SpnP+0qZz/tKmc/7SpnP+0qZz/tKib/93Y0v//////4t7Z/+7r 157 | 6P/7+/r/3NfR//j39v/y7+3/39rV//7+///79en/4rFL/5ltH/+VhnX/8vDt/+7s6P+VhnX/mW0f/+Oz 158 | UP/89+3///////////////////////////////////////////////////////////////////////// 159 | //+xpJj/0MjB//Xz8f+hkoP/7ero/9vVz/+pnI7//Pz9//v16f/isUv/mW0f/5WGdf/u7Oj/7Onl/5WG 160 | df+ZbR//47NQ//z37f////////////////////////////////////////////////////////////// 161 | //////////////z7+//9/fz////+//v7+v/+/v7//v39//z7+v//////+/Xp/+KxS/+ZbR//lYZ1/+zp 162 | 5f/r6OT/lYZ1/5ltH//js1D//Pft//////////////////////////////////////////////////// 163 | ///////////////////9/f3/6ubj/+Pf2//j39v/5ODb/+Pf2//j39v/6OXh//z8/f/79en/4rFL/5lt 164 | H/+VhnX/6+jk/+vo5P+VhnX/mW0f/+OzUP/89+3///////////////////////////////////////// 165 | //////////////////////////////Ty8P+SgnD/emVP/3tnUf97Z1H/e2dR/3pmUP+LeWb/7uzp//z2 166 | 6v/isUv/mW0f/5WGdf/r6OT/7Onl/5WGdf+ZbR//47NQ//z37f/5+fj/tamd/+bi3f////////////Px 167 | 7//Uzcb//Pv7/9/a1P/k4Nv//////////////////v7+//Ty8P/w7uz/8O7s//Du7P/w7uz/8O7s//Px 168 | 7//+/v//+/Xp/+KxS/+ZbR//lYZ1/+zp5f/u7Oj/lYZ1/5ltH//js1D//vnw/9vV0P9cQif/o5SF//// 169 | ////////6+jk/39rVv+om4z/fWlT/8vDuv/////////////////6+vn/z8jA/8O6sf/Eu7L/xLuy/8S7 170 | sv/EurH/zMS8//j39//89ur/4rFL/5ltH/+VhnX/7uzo//Lw7f+VhnX/mW0f/+OzUP/9+O//ppiK/4Bs 171 | V/9+alT/5eHd////////////xbuy/1Q5Hf+Xh3X//fz8//////////////////X08v+gkoL/i3ll/4x6 172 | Z/+Memf/jHpn/4t5Zv+ainn/8O7s//z26v/isUv/mW0f/5WGdf/y8O3/9/b1/5aGdf+ZbR//5LNR//Hr 173 | 3/+Cblr/0cnC/6GSgv+pnI3///////f29f+VhXP/eWRO/3tnUf/g29b///////////////////////7+ 174 | /v///////v7+//7+/v///////v79////////////+/Xp/+KxS/+ZbR//loZ1//f29f/9/fz/mIl5/5lt 175 | H//js1D/9/Ln/9nUzv/6+vn/3djS/35qVP/r5+T/7+zp/6uekP/u6+j/vLGm/9DJwf////////////// 176 | ////////+vn4/8S7sf/j3tn/39nU/8e+tf/x7+z/xbyz//X08//89ur/4rFL/5ltH/+YiXn//f38//// 177 | //+ej4D/mW0f/+OzUP/89+3////////////9/f3/mop5/5SEcv++s6j/vLGm/72zqP+8sqf/vLGm/7uw 178 | pf/Fu7L/9/b0//39/f+uoZT/a1Q7/3ZhSv92YEn/bFY9/3plT/+Sgm//9/b1//z26v/isUv/mW0f/56P 179 | gP///////////6CRg/+ZbR//47NQ//z37f/////////////////h3Nf/lYV0/5GAbv+RgG7/kYBu/5GA 180 | bv+RgG7/kH9t/56QgP/x7+z/+Pf2/62hk//b1c//tqqe/760qf/Wz8j/pJaG/+7r6P//////+/Xp/+Kx 181 | S/+ZbR//oJGD////////////oJGD/5ltH//js1D//Pft//////////////////////////////////// 182 | //////////////////////////////////////////////////////////////////////////////// 183 | ///79en/4rFL/5ltH/+gkYP///////////+gkYP/mW0f/+KwSf/258f/+O3W//jt1f/47dX/+O3V//jt 184 | 1f/47dX/+O3V//jt1f/47dX/+O3V//jt1f/47dX/+O3V//jt1f/47dX/+O3V//jt1f/47dX/+O3V//jt 185 | 1f/47dX/+O7W//Xlw//hrkX/mW0f/6CRg////////////6CRgv+abiH/36Yw/96oOv/eqDv/3qg7/96o 186 | O//eqDv/3qg7/96oO//eqDv/3qg7/96oO//eqDv/3qg7/96oO//eqDv/3qg7/96oO//eqDv/3qg7/96o 187 | O//eqDv/3qg7/96oO//eqDv/3qc6/9+lMP+abiH/oJGC////////////opOE/2xKGf+KYiD/iWEg/4lh 188 | IP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lh 189 | IP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/imIg/2xKGf+ik4T////////////e2dT/tqug/7Wr 190 | oP+1q6D/taqf/62ilf+onI7/qJyO/6icjv+onI7/qJyO/6icjv+onI7/qJyO/6icjv+onI7/qJyO/6ic 191 | jv+onI7/qJyO/6icjv+onI7/qJyO/6icjv+topX/taqf/7WroP+1q6D/tqug/97Z1P////////////// 192 | /////////////////////////v7+//b18v/t6+f/6+nk/+vp5P/s6eT/7Onk/+zp5P/s6eT/7Onk/+zp 193 | 5P/s6eT/7Onk/+zp5P/s6eT/6+nk/+vp5P/t6+f/9vXy//7+/v////////////////////////////// 194 | //////////////////////////////////////////////r6+f/y8O3/7Onl/+nm4f/p5uH/6ebh/+nm 195 | 4f/p5uH/6ebh/+nm4f/p5uH/6ebh/+nm4f/s6eX/8vDt//r6+P////////////////////////////// 196 | ///////////////////////////////////////////////////////////////////7+/r/9vTy//Du 197 | 6//s6uX/6ufi/+nm4f/p5uH/6ufi/+zq5f/w7uv/9vTy//v7+v////////////////////////////// 198 | ////////////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 199 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 200 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= 201 | 202 | 203 | 204 | 205 | AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAACMuAAAjLgAAAAAAAAAA 206 | AAD/////////////////////////////////////////////////////+/v6//b08v/w7uv/7Orl/+rn 207 | 4v/p5uH/6ebh/+rn4v/s6uX/8O7r//b08v/7+/r///////////////////////////////////////// 208 | ////////////////////////////////////////////////////////+vr5//Lw7f/s6eX/6ebh/+nm 209 | 4f/p5uH/6ebh/+nm4f/p5uH/6ebh/+nm4f/p5uH/6ebh/+zp5f/y8O3/+vr5//////////////////// 210 | /////////////////////////////////////////////////////////v7+//b18v/t6+f/6+nk/+vp 211 | 5P/s6eT/7Onk/+zp5P/s6eT/7Onk/+zp5P/s6eT/7Onk/+zp5P/s6eT/6+nk/+vp5P/t6+f/9vXy//7+ 212 | /v////////////////////////////////+9sqf/t6qd/7eqnf+3qp3/t6qd/7eqnP+voZL/qpuL/6qb 213 | i/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qb 214 | i/+qm4v/r6GS/7eqnP+3qp3/t6qd/7eqnf+3qp3/vbKo/1I+J/9UZmr/VW13/1Vtdv9VbXb/VW12/1Vt 215 | df9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Zt 216 | dv9WbXb/Vm12/1Ztdv9VbXX/VW12/1Vtdv9VbXb/VW13/1Rmav9SPif/U0k4/1yu4f9ewf//XsD+/17A 217 | /v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A 218 | /v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewf//XK7h/1NJOP9TSTj/XK3g/16/ 219 | /v9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+ 220 | /P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16//v9creD/U0k4/1M/ 221 | J/9VYmL/Vmdr/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Zn 222 | av9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdr/1Vi 223 | Yv9UPyf/xbyy/4JuWP9/Vxr/qXki/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3 224 | H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6l5 225 | Iv9/Vxr/gm5Y/8W8sv//////npCB/5puIP/hqTb/5bhb/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6 226 | X//mul//5rpf/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6 227 | X//luFr/4Kk1/5puIP+ekIH///////39/P+YiXn/mW0f/+OyT//68+X//vz4//789//+/Pf//vz3//78 228 | 9//+/Pf//vz3//789//+/Pf//vz3//789//+/Pf//vz3//379v/9+/b//fv2//379v/9+/b//fv2//37 229 | 9v/9+/b//fz3//ny4f/isEr/mW0f/5iJef/9/fz/9/b1/5aGdf+ZbR//47NQ//757//Uzcf/mIh3/5iI 230 | d/+YiHf/mIh3/5iId/+YiHf/mIh3/5iId/+YiHf/mIh3/5eHdv/QyMH///////////////////////// 231 | ////////////////////////+/Xp/+KxS/+ZbR//loZ1//f29f/y8O3/lYZ1/5ltH//js1D//fjv/+Dc 232 | 1/+0qZz/tKmc/7SpnP+0qZz/tKmc/7SpnP+0qZz/tKmc/7SpnP+0qZz/tKib/93Y0v//////4t7Z/+7r 233 | 6P/7+/r/3NfR//j39v/y7+3/39rV//7+///79en/4rFL/5ltH/+VhnX/8vDt/+7s6P+VhnX/mW0f/+Oz 234 | UP/89+3///////////////////////////////////////////////////////////////////////// 235 | //+xpJj/0MjB//Xz8f+hkoP/7ero/9vVz/+pnI7//Pz9//v16f/isUv/mW0f/5WGdf/u7Oj/7Onl/5WG 236 | df+ZbR//47NQ//z37f////////////////////////////////////////////////////////////// 237 | //////////////z7+//9/fz////+//v7+v/+/v7//v39//z7+v//////+/Xp/+KxS/+ZbR//lYZ1/+zp 238 | 5f/r6OT/lYZ1/5ltH//js1D//Pft//////////////////////////////////////////////////// 239 | ///////////////////9/f3/6ubj/+Pf2//j39v/5ODb/+Pf2//j39v/6OXh//z8/f/79en/4rFL/5lt 240 | H/+VhnX/6+jk/+vo5P+VhnX/mW0f/+OzUP/89+3///////////////////////////////////////// 241 | //////////////////////////////Ty8P+SgnD/emVP/3tnUf97Z1H/e2dR/3pmUP+LeWb/7uzp//z2 242 | 6v/isUv/mW0f/5WGdf/r6OT/7Onl/5WGdf+ZbR//47NQ//z37f/5+fj/tamd/+bi3f////////////Px 243 | 7//Uzcb//Pv7/9/a1P/k4Nv//////////////////v7+//Ty8P/w7uz/8O7s//Du7P/w7uz/8O7s//Px 244 | 7//+/v//+/Xp/+KxS/+ZbR//lYZ1/+zp5f/u7Oj/lYZ1/5ltH//js1D//vnw/9vV0P9cQif/o5SF//// 245 | ////////6+jk/39rVv+om4z/fWlT/8vDuv/////////////////6+vn/z8jA/8O6sf/Eu7L/xLuy/8S7 246 | sv/EurH/zMS8//j39//89ur/4rFL/5ltH/+VhnX/7uzo//Lw7f+VhnX/mW0f/+OzUP/9+O//ppiK/4Bs 247 | V/9+alT/5eHd////////////xbuy/1Q5Hf+Xh3X//fz8//////////////////X08v+gkoL/i3ll/4x6 248 | Z/+Memf/jHpn/4t5Zv+ainn/8O7s//z26v/isUv/mW0f/5WGdf/y8O3/9/b1/5aGdf+ZbR//5LNR//Hr 249 | 3/+Cblr/0cnC/6GSgv+pnI3///////f29f+VhXP/eWRO/3tnUf/g29b///////////////////////7+ 250 | /v///////v7+//7+/v///////v79////////////+/Xp/+KxS/+ZbR//loZ1//f29f/9/fz/mIl5/5lt 251 | H//js1D/9/Ln/9nUzv/6+vn/3djS/35qVP/r5+T/7+zp/6uekP/u6+j/vLGm/9DJwf////////////// 252 | ////////+vn4/8S7sf/j3tn/39nU/8e+tf/x7+z/xbyz//X08//89ur/4rFL/5ltH/+YiXn//f38//// 253 | //+ej4D/mW0f/+OzUP/89+3////////////9/f3/mop5/5SEcv++s6j/vLGm/72zqP+8sqf/vLGm/7uw 254 | pf/Fu7L/9/b0//39/f+uoZT/a1Q7/3ZhSv92YEn/bFY9/3plT/+Sgm//9/b1//z26v/isUv/mW0f/56P 255 | gP///////////6CRg/+ZbR//47NQ//z37f/////////////////h3Nf/lYV0/5GAbv+RgG7/kYBu/5GA 256 | bv+RgG7/kH9t/56QgP/x7+z/+Pf2/62hk//b1c//tqqe/760qf/Wz8j/pJaG/+7r6P//////+/Xp/+Kx 257 | S/+ZbR//oJGD////////////oJGD/5ltH//js1D//Pft//////////////////////////////////// 258 | //////////////////////////////////////////////////////////////////////////////// 259 | ///79en/4rFL/5ltH/+gkYP///////////+gkYP/mW0f/+KwSf/258f/+O3W//jt1f/47dX/+O3V//jt 260 | 1f/47dX/+O3V//jt1f/47dX/+O3V//jt1f/47dX/+O3V//jt1f/47dX/+O3V//jt1f/47dX/+O3V//jt 261 | 1f/47dX/+O7W//Xlw//hrkX/mW0f/6CRg////////////6CRgv+abiH/36Yw/96oOv/eqDv/3qg7/96o 262 | O//eqDv/3qg7/96oO//eqDv/3qg7/96oO//eqDv/3qg7/96oO//eqDv/3qg7/96oO//eqDv/3qg7/96o 263 | O//eqDv/3qg7/96oO//eqDv/3qc6/9+lMP+abiH/oJGC////////////opOE/2xKGf+KYiD/iWEg/4lh 264 | IP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lh 265 | IP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/imIg/2xKGf+ik4T////////////e2dT/tqug/7Wr 266 | oP+1q6D/taqf/62ilf+onI7/qJyO/6icjv+onI7/qJyO/6icjv+onI7/qJyO/6icjv+onI7/qJyO/6ic 267 | jv+onI7/qJyO/6icjv+onI7/qJyO/6icjv+topX/taqf/7WroP+1q6D/tqug/97Z1P////////////// 268 | /////////////////////////v7+//b18v/t6+f/6+nk/+vp5P/s6eT/7Onk/+zp5P/s6eT/7Onk/+zp 269 | 5P/s6eT/7Onk/+zp5P/s6eT/6+nk/+vp5P/t6+f/9vXy//7+/v////////////////////////////// 270 | //////////////////////////////////////////////r6+f/y8O3/7Onl/+nm4f/p5uH/6ebh/+nm 271 | 4f/p5uH/6ebh/+nm4f/p5uH/6ebh/+nm4f/s6eX/8vDt//r6+P////////////////////////////// 272 | ///////////////////////////////////////////////////////////////////7+/r/9vTy//Du 273 | 6//s6uX/6ufi/+nm4f/p5uH/6ufi/+zq5f/w7uv/9vTy//v7+v////////////////////////////// 274 | ////////////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 275 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 276 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= 277 | 278 | 279 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Form2.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace MathpixCsharp 2 | { 3 | partial class ScreenShot 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.pictureBox1 = new System.Windows.Forms.PictureBox(); 32 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); 33 | this.SuspendLayout(); 34 | // 35 | // pictureBox1 36 | // 37 | this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 38 | | System.Windows.Forms.AnchorStyles.Left) 39 | | System.Windows.Forms.AnchorStyles.Right))); 40 | this.pictureBox1.Location = new System.Drawing.Point(0, -1); 41 | this.pictureBox1.Margin = new System.Windows.Forms.Padding(2); 42 | this.pictureBox1.Name = "pictureBox1"; 43 | this.pictureBox1.Size = new System.Drawing.Size(601, 365); 44 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; 45 | this.pictureBox1.TabIndex = 0; 46 | this.pictureBox1.TabStop = false; 47 | this.pictureBox1.Paint += new System.Windows.Forms.PaintEventHandler(this.pictureBox1_Paint); 48 | this.pictureBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseDown); 49 | this.pictureBox1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseMove); 50 | this.pictureBox1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseUp); 51 | // 52 | // ScreenShot 53 | // 54 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 55 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 56 | this.ClientSize = new System.Drawing.Size(600, 360); 57 | this.Controls.Add(this.pictureBox1); 58 | this.DoubleBuffered = true; 59 | this.Margin = new System.Windows.Forms.Padding(2); 60 | this.Name = "ScreenShot"; 61 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 62 | this.Text = "ScreenShot"; 63 | this.Load += new System.EventHandler(this.ScreenShot_Load); 64 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); 65 | this.ResumeLayout(false); 66 | 67 | } 68 | 69 | #endregion 70 | 71 | private System.Windows.Forms.PictureBox pictureBox1; 72 | } 73 | } -------------------------------------------------------------------------------- /WindowsFormsApp1/Form2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Drawing.Drawing2D; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace MathpixCsharp 13 | { 14 | public partial class ScreenShot : Form 15 | { 16 | public ScreenShot() 17 | { 18 | InitializeComponent(); 19 | SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); 20 | TopMost = true; 21 | this.Cursor = System.Windows.Forms.Cursors.Cross; 22 | } 23 | public bool begin = false; 24 | public bool isDoubleClick = false; 25 | public Point firstPoint = new Point(0, 0); 26 | public Point secondPoint = new Point(0, 0); 27 | public Image cachImage = null; 28 | public int halfWidth = 0; 29 | public int halfHeight = 0; 30 | private Bitmap tempimage; 31 | 32 | public void copyScreen() 33 | { 34 | var screen = Screen.FromControl(this.Owner); 35 | Rectangle r = screen.Bounds;//Screen.PrimaryScreen.Bounds; 36 | Image img = new Bitmap(r.Width, r.Height); 37 | Graphics g = Graphics.FromImage(img); 38 | g.CopyFromScreen(screen.Bounds.X, screen.Bounds.Y, 0, 0, r.Size); 39 | 40 | //Maximize form 41 | this.Width = r.Width; 42 | this.Height = r.Height; 43 | this.Left = screen.Bounds.X; 44 | this.Top = screen.Bounds.Y; 45 | pictureBox1.Width = r.Width; 46 | pictureBox1.Height = r.Height; 47 | pictureBox1.BackgroundImage = img; 48 | cachImage = img; 49 | tempimage = new Bitmap(cachImage); 50 | halfWidth = r.Width / 2; 51 | halfHeight = r.Height / 2; 52 | this.FormBorderStyle = FormBorderStyle.None; 53 | //this.Cursor = new Cursor(GetType(), "MyCursor.cur"); 54 | } 55 | 56 | private void ScreenShot_Load(object sender, EventArgs e) 57 | { 58 | copyScreen(); 59 | } 60 | 61 | private void pictureBox1_MouseDown(object sender, MouseEventArgs e) 62 | { 63 | if (e.Button == MouseButtons.Right) 64 | { 65 | Form1 FaForm = (Form1)this.Owner; 66 | FaForm.cancelled = true; 67 | this.Close(); 68 | } 69 | if (!isDoubleClick) 70 | { 71 | begin = true; 72 | firstPoint = new Point(e.X, e.Y); 73 | //changePoint(e.X, e.Y); 74 | //msg.Visible = true; 75 | } 76 | } 77 | 78 | private void pictureBox1_MouseMove(object sender, MouseEventArgs e) 79 | { 80 | if (begin) 81 | { 82 | this.secondPoint= new Point(e.X, e.Y); 83 | pictureBox1.Invalidate(); 84 | } 85 | GC.Collect(); 86 | } 87 | 88 | /*Screenshot is completed when you let go of the mouse operation */ 89 | private void pictureBox1_MouseUp(object sender, MouseEventArgs e) 90 | { 91 | //begin = false; 92 | if (firstPoint != secondPoint) 93 | { 94 | int minX = Math.Min(firstPoint.X, secondPoint.X); 95 | int minY = Math.Min(firstPoint.Y, secondPoint.Y); 96 | int maxX = Math.Max(firstPoint.X, secondPoint.X); 97 | int maxY = Math.Max(firstPoint.Y, secondPoint.Y); 98 | Rectangle rec = new Rectangle(minX, minY, maxX - minX, maxY - minY); 99 | Rectangle rec2 = rec; 100 | if (rec.Width > 2 && rec.Height > 2) 101 | rec2 = new Rectangle(rec.X + 1, rec.Y + 1, rec.Width - 2, rec.Height - 3); 102 | //Rectangle r = Screen.FromControl(this).Bounds; 103 | var screen = Screen.FromControl(this.Owner); 104 | Bitmap img = new Bitmap(rec2.Width, rec2.Height); 105 | Graphics g = Graphics.FromImage(img); 106 | g.CopyFromScreen(rec2.Location.X+screen.Bounds.X, rec2.Location.Y+screen.Bounds.Y, 0, 0, rec2.Size); 107 | 108 | Clipboard.SetImage(img); 109 | 110 | //Send to father form 111 | Form1 FaForm = (Form1)this.Owner; 112 | FaForm.Bit = new Bitmap(img); 113 | FaForm.success = true; 114 | } 115 | GC.Collect(); 116 | this.Close(); 117 | } 118 | 119 | private void pictureBox1_Paint(object sender, PaintEventArgs e) 120 | { 121 | if (begin) 122 | { 123 | int minX = Math.Min(firstPoint.X, secondPoint.X); 124 | int minY = Math.Min(firstPoint.Y, secondPoint.Y); 125 | int maxX = Math.Max(firstPoint.X, secondPoint.X); 126 | int maxY = Math.Max(firstPoint.Y, secondPoint.Y); 127 | e.Graphics.DrawImage(tempimage, 0, 0); 128 | e.Graphics.DrawRectangle(new Pen(Color.Red), minX, minY, maxX - minX, maxY - minY); 129 | } 130 | else 131 | { 132 | e.Graphics.DrawImage(tempimage, 0, 0); 133 | } 134 | } 135 | } 136 | } 137 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Form2.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /WindowsFormsApp1/GetCode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Net.Http; 7 | using Newtonsoft.Json; 8 | using System.Drawing; 9 | using System.Net.Http.Headers; 10 | using System.Windows.Forms; 11 | 12 | namespace MathpixCsharp 13 | { 14 | public class DataOptions 15 | { 16 | public bool include_latex { get; set; } 17 | 18 | public bool include_mathml { get; set; } 19 | 20 | public DataOptions() 21 | { 22 | include_latex = true; 23 | } 24 | } 25 | 26 | public class RootObject 27 | { 28 | public string src { get; set; } 29 | public List formats { get; set; } 30 | public DataOptions data_options { get; set; } 31 | 32 | public RootObject() 33 | { 34 | src = ""; 35 | formats = new List(); 36 | data_options = new DataOptions(); 37 | } 38 | 39 | } 40 | public class DataItem 41 | { 42 | public string type { get; set; } 43 | public string value { get; set; } 44 | } 45 | public class RespJson 46 | { 47 | public int code; 48 | public string message; 49 | public int uses; 50 | public double confidence; 51 | public double confidence_rate; 52 | public string text; 53 | public List data { get; set; } 54 | 55 | public RespJson() 56 | { 57 | confidence = 0.0; 58 | confidence_rate = 0.0; 59 | text = ""; 60 | data = new List(); 61 | } 62 | } 63 | public class GetCode 64 | { 65 | private static readonly HttpClient client = new HttpClient(); 66 | private string OfficialUrl = "https://api.mathpix.com/v3/text"; 67 | private string QspUrl = "https://service-hzv8746l-1255970853.sh.apigw.tencentcs.com/release/mathcode"; 68 | RootObject Values = new RootObject(); 69 | 70 | public GetCode() 71 | { 72 | Values.formats.Add("data"); 73 | Values.formats.Add("text"); 74 | Values.data_options.include_latex = true; 75 | Values.data_options.include_mathml = true; 76 | } 77 | 78 | public void SetImg(Bitmap bit) 79 | { 80 | System.IO.MemoryStream stream = new System.IO.MemoryStream(); 81 | bit.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg); 82 | byte[] imageBytes = stream.ToArray(); 83 | Values.src = "data:image/jpeg;base64," + Convert.ToBase64String(imageBytes); 84 | } 85 | 86 | public async Task > GetLatex() 87 | { 88 | bool isOfficial = Properties.Settings.Default.isOfficial; 89 | List retL = new List(); 90 | string ret = ""; 91 | var contents =new StringContent (JsonConvert.SerializeObject(Values),Encoding.UTF8, "application/json"); 92 | client.DefaultRequestHeaders.Clear(); 93 | client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); 94 | //client.DefaultRequestHeaders.Add("Content-Type", "application/json"); 95 | client.DefaultRequestHeaders.Add("app_id", Properties.Settings.Default.id); 96 | client.DefaultRequestHeaders.Add("app_key", Properties.Settings.Default.key); 97 | try 98 | { 99 | HttpResponseMessage response = await client.PostAsync(isOfficial?OfficialUrl:QspUrl,contents); 100 | response.EnsureSuccessStatusCode(); 101 | string responseBody = await response.Content.ReadAsStringAsync(); 102 | var tmp = JsonConvert.DeserializeObject(responseBody); 103 | //ret = JsonConvert.DeserializeObject(responseBody).data[1].value; 104 | if (!isOfficial&& tmp.code != 200) 105 | { 106 | throw new Exception(tmp.message); 107 | } 108 | 109 | var ttt = tmp.text; 110 | ret = tmp.text.Replace(@"\)", "$").Replace(@"\(","$").Replace(@"\]", "$$").Replace(@"\[","$$"); 111 | 112 | 113 | //var ret_b = new StringBuilder("$$"+ret+"$$"); 114 | //ret_b[0] = ret_b[1] = '$'; 115 | //ret_b[ret_b.Length-1] = ret_b[ret_b.Length-2] = '$'; 116 | //ret = Convert.ToString(ret_b); 117 | retL.Add(ret);//Latex inline 118 | if (ret.StartsWith("$")) 119 | { 120 | retL.Add("\\begin{equation}\n" + ret.Substring(1, ret.Length - 2) + "\n\\end{equation}");//Latex Presentation 121 | } 122 | else 123 | { 124 | retL.Add("\\begin{equation}\n" + ret + "\n\\end{equation}"); 125 | } 126 | if (tmp.data.Count != 0) 127 | { 128 | ret = tmp.data[0].value; 129 | retL.Add(ret);//MathML 130 | } 131 | else 132 | { 133 | retL.Add("MathML功能目前只能识别单个公式,请准确地截取图片"); 134 | } 135 | if (!isOfficial) 136 | { 137 | retL.Add(tmp.uses.ToString()); 138 | } 139 | else 140 | { 141 | retL.Add("INF"); 142 | } 143 | } 144 | catch (Exception e) 145 | { 146 | if (isOfficial) 147 | { 148 | MessageBox.Show(e.Message, "Http错误 :{0} ,请准确截取公式,或检查Key是否正确"); 149 | // Console.WriteLine("\nException Caught!"); 150 | // Console.WriteLine("Message :{0} ", e.Message); 151 | } 152 | else 153 | { 154 | MessageBox.Show(e.Message,"Error!"); 155 | } 156 | } 157 | return retL; 158 | } 159 | 160 | } 161 | } 162 | -------------------------------------------------------------------------------- /WindowsFormsApp1/MathpixCsharp.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {7F677AF7-C758-4970-9FD7-8C1F08B9399A} 8 | WinExe 9 | MathpixCsharp 10 | MathpixCsharp 11 | v4.6.1 12 | 512 13 | true 14 | true 15 | false 16 | 17 | C:\Users\qushi\OneDrive\桌面\testfuck\ 18 | true 19 | Disk 20 | false 21 | Foreground 22 | 7 23 | Days 24 | false 25 | false 26 | true 27 | 0 28 | 1.0.0.%2a 29 | false 30 | true 31 | 32 | 33 | AnyCPU 34 | true 35 | full 36 | false 37 | bin\Debug\ 38 | DEBUG;TRACE 39 | prompt 40 | 4 41 | 42 | 43 | AnyCPU 44 | pdbonly 45 | true 46 | bin\Release\ 47 | TRACE 48 | prompt 49 | 4 50 | 51 | 52 | true 53 | 54 | 55 | app.manifest 56 | 57 | 58 | 59 | ..\packages\MaterialSkin.2.2.1.3\lib\net461\MaterialSkin.dll 60 | 61 | 62 | ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | Form 79 | 80 | 81 | Form1.cs 82 | 83 | 84 | Form 85 | 86 | 87 | Form2.cs 88 | 89 | 90 | 91 | Form 92 | 93 | 94 | login.cs 95 | 96 | 97 | 98 | 99 | Form1.cs 100 | 101 | 102 | Form2.cs 103 | 104 | 105 | login.cs 106 | 107 | 108 | ResXFileCodeGenerator 109 | Resources.Designer.cs 110 | Designer 111 | 112 | 113 | True 114 | Resources.resx 115 | True 116 | 117 | 118 | 119 | 120 | SettingsSingleFileGenerator 121 | Settings.Designer.cs 122 | 123 | 124 | True 125 | Settings.settings 126 | True 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | False 135 | Microsoft .NET Framework 4.7.2 %28x86 和 x64%29 136 | true 137 | 138 | 139 | False 140 | .NET Framework 3.5 SP1 141 | false 142 | 143 | 144 | 145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace MathpixCsharp 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// 应用程序的主入口点。 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("MathpixCsharp")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MathpixCsharp")] 13 | [assembly: AssemblyCopyright("Copyright © 2020")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("7f677af7-c758-4970-9fd7-8c1f08b9399a")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MathpixCsharp.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// 一个强类型的资源类,用于查找本地化的字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// 返回此类使用的缓存的 ResourceManager 实例。 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MathpixCsharp.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// 重写当前线程的 CurrentUICulture 属性 51 | /// 重写当前线程的 CurrentUICulture 属性。 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// 查找 System.Drawing.Bitmap 类型的本地化资源。 65 | /// 66 | internal static System.Drawing.Bitmap _default { 67 | get { 68 | object obj = ResourceManager.GetObject("default", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MathpixCsharp.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | 26 | [global::System.Configuration.UserScopedSettingAttribute()] 27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 28 | [global::System.Configuration.DefaultSettingValueAttribute("")] 29 | public string id { 30 | get { 31 | return ((string)(this["id"])); 32 | } 33 | set { 34 | this["id"] = value; 35 | } 36 | } 37 | 38 | [global::System.Configuration.UserScopedSettingAttribute()] 39 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 40 | [global::System.Configuration.DefaultSettingValueAttribute("")] 41 | public string key { 42 | get { 43 | return ((string)(this["key"])); 44 | } 45 | set { 46 | this["key"] = value; 47 | } 48 | } 49 | 50 | [global::System.Configuration.UserScopedSettingAttribute()] 51 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 52 | [global::System.Configuration.DefaultSettingValueAttribute("True")] 53 | public bool isOfficial { 54 | get { 55 | return ((bool)(this["isOfficial"])); 56 | } 57 | set { 58 | this["isOfficial"] = value; 59 | } 60 | } 61 | 62 | [global::System.Configuration.UserScopedSettingAttribute()] 63 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 64 | [global::System.Configuration.DefaultSettingValueAttribute("0")] 65 | public string uses { 66 | get { 67 | return ((string)(this["uses"])); 68 | } 69 | set { 70 | this["uses"] = value; 71 | } 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | True 13 | 14 | 15 | 0 16 | 17 | 18 | -------------------------------------------------------------------------------- /WindowsFormsApp1/Resources/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itewqq/MathpixCsharp/2352378f698114aaf956af28b93e3f8c14ff0342/WindowsFormsApp1/Resources/default.png -------------------------------------------------------------------------------- /WindowsFormsApp1/app.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 56 | 57 | 58 | 59 | true 60 | 61 | 62 | 63 | 64 | 65 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /WindowsFormsApp1/login.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace MathpixCsharp 2 | { 3 | partial class login 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(login)); 32 | this.textBox1 = new System.Windows.Forms.TextBox(); 33 | this.textBox2 = new System.Windows.Forms.TextBox(); 34 | this.label1 = new System.Windows.Forms.Label(); 35 | this.label2 = new System.Windows.Forms.Label(); 36 | this.button1 = new System.Windows.Forms.Button(); 37 | this.menuStrip1 = new System.Windows.Forms.MenuStrip(); 38 | this.HelpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 39 | this.officialChoose = new System.Windows.Forms.RadioButton(); 40 | this.qspChoose = new System.Windows.Forms.RadioButton(); 41 | this.groupBox1 = new System.Windows.Forms.GroupBox(); 42 | this.menuStrip1.SuspendLayout(); 43 | this.groupBox1.SuspendLayout(); 44 | this.SuspendLayout(); 45 | // 46 | // textBox1 47 | // 48 | this.textBox1.Location = new System.Drawing.Point(75, 45); 49 | this.textBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); 50 | this.textBox1.Name = "textBox1"; 51 | this.textBox1.Size = new System.Drawing.Size(223, 21); 52 | this.textBox1.TabIndex = 0; 53 | // 54 | // textBox2 55 | // 56 | this.textBox2.Location = new System.Drawing.Point(75, 99); 57 | this.textBox2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); 58 | this.textBox2.Name = "textBox2"; 59 | this.textBox2.Size = new System.Drawing.Size(223, 21); 60 | this.textBox2.TabIndex = 1; 61 | // 62 | // label1 63 | // 64 | this.label1.AutoSize = true; 65 | this.label1.Font = new System.Drawing.Font("宋体", 11F); 66 | this.label1.Location = new System.Drawing.Point(11, 50); 67 | this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); 68 | this.label1.Name = "label1"; 69 | this.label1.Size = new System.Drawing.Size(55, 15); 70 | this.label1.TabIndex = 2; 71 | this.label1.Text = "app_id"; 72 | // 73 | // label2 74 | // 75 | this.label2.AutoSize = true; 76 | this.label2.Font = new System.Drawing.Font("宋体", 11F); 77 | this.label2.Location = new System.Drawing.Point(11, 104); 78 | this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); 79 | this.label2.Name = "label2"; 80 | this.label2.Size = new System.Drawing.Size(63, 15); 81 | this.label2.TabIndex = 3; 82 | this.label2.Text = "app_key"; 83 | // 84 | // button1 85 | // 86 | this.button1.Location = new System.Drawing.Point(118, 175); 87 | this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); 88 | this.button1.Name = "button1"; 89 | this.button1.Size = new System.Drawing.Size(98, 26); 90 | this.button1.TabIndex = 4; 91 | this.button1.Text = "确认"; 92 | this.button1.UseVisualStyleBackColor = true; 93 | this.button1.Click += new System.EventHandler(this.button1_Click); 94 | // 95 | // menuStrip1 96 | // 97 | this.menuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24); 98 | this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 99 | this.HelpToolStripMenuItem}); 100 | this.menuStrip1.Location = new System.Drawing.Point(0, 0); 101 | this.menuStrip1.Name = "menuStrip1"; 102 | this.menuStrip1.Padding = new System.Windows.Forms.Padding(4, 1, 0, 1); 103 | this.menuStrip1.Size = new System.Drawing.Size(341, 24); 104 | this.menuStrip1.TabIndex = 5; 105 | this.menuStrip1.Text = "menuStrip1"; 106 | // 107 | // HelpToolStripMenuItem 108 | // 109 | this.HelpToolStripMenuItem.Name = "HelpToolStripMenuItem"; 110 | this.HelpToolStripMenuItem.Size = new System.Drawing.Size(44, 22); 111 | this.HelpToolStripMenuItem.Text = "帮助"; 112 | this.HelpToolStripMenuItem.Click += new System.EventHandler(this.HelpToolStripMenuItem_Click); 113 | // 114 | // officialChoose 115 | // 116 | this.officialChoose.AutoSize = true; 117 | this.officialChoose.Checked = true; 118 | this.officialChoose.Location = new System.Drawing.Point(6, 20); 119 | this.officialChoose.Name = "officialChoose"; 120 | this.officialChoose.Size = new System.Drawing.Size(65, 16); 121 | this.officialChoose.TabIndex = 6; 122 | this.officialChoose.TabStop = true; 123 | this.officialChoose.Text = "官方Key"; 124 | this.officialChoose.UseVisualStyleBackColor = true; 125 | // 126 | // qspChoose 127 | // 128 | this.qspChoose.AutoSize = true; 129 | this.qspChoose.Location = new System.Drawing.Point(99, 20); 130 | this.qspChoose.Name = "qspChoose"; 131 | this.qspChoose.Size = new System.Drawing.Size(77, 16); 132 | this.qspChoose.TabIndex = 7; 133 | this.qspChoose.Text = "第三方Key"; 134 | this.qspChoose.UseVisualStyleBackColor = true; 135 | // 136 | // groupBox1 137 | // 138 | this.groupBox1.Controls.Add(this.qspChoose); 139 | this.groupBox1.Controls.Add(this.officialChoose); 140 | this.groupBox1.Location = new System.Drawing.Point(87, 125); 141 | this.groupBox1.Name = "groupBox1"; 142 | this.groupBox1.Size = new System.Drawing.Size(200, 45); 143 | this.groupBox1.TabIndex = 8; 144 | this.groupBox1.TabStop = false; 145 | // 146 | // login 147 | // 148 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 149 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 150 | this.ClientSize = new System.Drawing.Size(341, 223); 151 | this.Controls.Add(this.groupBox1); 152 | this.Controls.Add(this.button1); 153 | this.Controls.Add(this.label2); 154 | this.Controls.Add(this.label1); 155 | this.Controls.Add(this.textBox2); 156 | this.Controls.Add(this.textBox1); 157 | this.Controls.Add(this.menuStrip1); 158 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 159 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 160 | this.MainMenuStrip = this.menuStrip1; 161 | this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); 162 | this.MaximizeBox = false; 163 | this.Name = "login"; 164 | this.Text = "login"; 165 | this.Load += new System.EventHandler(this.login_Load); 166 | this.menuStrip1.ResumeLayout(false); 167 | this.menuStrip1.PerformLayout(); 168 | this.groupBox1.ResumeLayout(false); 169 | this.groupBox1.PerformLayout(); 170 | this.ResumeLayout(false); 171 | this.PerformLayout(); 172 | 173 | } 174 | 175 | #endregion 176 | 177 | private System.Windows.Forms.TextBox textBox1; 178 | private System.Windows.Forms.TextBox textBox2; 179 | private System.Windows.Forms.Label label1; 180 | private System.Windows.Forms.Label label2; 181 | private System.Windows.Forms.Button button1; 182 | private System.Windows.Forms.MenuStrip menuStrip1; 183 | private System.Windows.Forms.ToolStripMenuItem HelpToolStripMenuItem; 184 | private System.Windows.Forms.RadioButton officialChoose; 185 | private System.Windows.Forms.RadioButton qspChoose; 186 | private System.Windows.Forms.GroupBox groupBox1; 187 | } 188 | } -------------------------------------------------------------------------------- /WindowsFormsApp1/login.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | using MaterialSkin; 12 | using MaterialSkin.Controls; 13 | 14 | namespace MathpixCsharp 15 | { 16 | public partial class login : MaterialForm 17 | { 18 | public login() 19 | { 20 | InitializeComponent(); 21 | var materialSkinManager = MaterialSkinManager.Instance; 22 | materialSkinManager.AddFormToManage(this); 23 | materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT; 24 | materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE); 25 | } 26 | 27 | private void login_Load(object sender, EventArgs e) 28 | { 29 | this.TopMost = true; 30 | } 31 | 32 | private void button1_Click(object sender, EventArgs e) 33 | { 34 | Properties.Settings.Default.id=textBox1.Text; 35 | Properties.Settings.Default.key=textBox2.Text; 36 | if (this.officialChoose.Checked) 37 | { 38 | Properties.Settings.Default.isOfficial = true; 39 | } 40 | else 41 | { 42 | Properties.Settings.Default.isOfficial = false; 43 | } 44 | this.Dispose(); 45 | } 46 | 47 | private void HelpToolStripMenuItem_Click(object sender, EventArgs e) 48 | { 49 | System.Diagnostics.Process.Start("https://github.com/itewqq/MathpixCsharp#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95"); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /WindowsFormsApp1/login.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | 124 | 125 | 126 | AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAACMuAAAjLgAAAAAAAAAA 127 | AAD/////////////////////////////////////////////////////+/v6//b08v/w7uv/7Orl/+rn 128 | 4v/p5uH/6ebh/+rn4v/s6uX/8O7r//b08v/7+/r///////////////////////////////////////// 129 | ////////////////////////////////////////////////////////+vr5//Lw7f/s6eX/6ebh/+nm 130 | 4f/p5uH/6ebh/+nm4f/p5uH/6ebh/+nm4f/p5uH/6ebh/+zp5f/y8O3/+vr5//////////////////// 131 | /////////////////////////////////////////////////////////v7+//b18v/t6+f/6+nk/+vp 132 | 5P/s6eT/7Onk/+zp5P/s6eT/7Onk/+zp5P/s6eT/7Onk/+zp5P/s6eT/6+nk/+vp5P/t6+f/9vXy//7+ 133 | /v////////////////////////////////+9sqf/t6qd/7eqnf+3qp3/t6qd/7eqnP+voZL/qpuL/6qb 134 | i/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qbi/+qm4v/qpuL/6qb 135 | i/+qm4v/r6GS/7eqnP+3qp3/t6qd/7eqnf+3qp3/vbKo/1I+J/9UZmr/VW13/1Vtdv9VbXb/VW12/1Vt 136 | df9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Ztdv9WbXb/Vm12/1Zt 137 | dv9WbXb/Vm12/1Ztdv9VbXX/VW12/1Vtdv9VbXb/VW13/1Rmav9SPif/U0k4/1yu4f9ewf//XsD+/17A 138 | /v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A 139 | /v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewP7/XsD+/17A/v9ewf//XK7h/1NJOP9TSTj/XK3g/16/ 140 | /v9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+ 141 | /P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16+/P9evvz/Xr78/16//v9creD/U0k4/1M/ 142 | J/9VYmL/Vmdr/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Zn 143 | av9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdq/1Znav9WZ2r/Vmdr/1Vi 144 | Yv9UPyf/xbyy/4JuWP9/Vxr/qXki/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3 145 | H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6d3H/+ndx//p3cf/6l5 146 | Iv9/Vxr/gm5Y/8W8sv//////npCB/5puIP/hqTb/5bhb/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6 147 | X//mul//5rpf/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6X//mul//5rpf/+a6 148 | X//luFr/4Kk1/5puIP+ekIH///////39/P+YiXn/mW0f/+OyT//68+X//vz4//789//+/Pf//vz3//78 149 | 9//+/Pf//vz3//789//+/Pf//vz3//789//+/Pf//vz3//379v/9+/b//fv2//379v/9+/b//fv2//37 150 | 9v/9+/b//fz3//ny4f/isEr/mW0f/5iJef/9/fz/9/b1/5aGdf+ZbR//47NQ//757//Uzcf/mIh3/5iI 151 | d/+YiHf/mIh3/5iId/+YiHf/mIh3/5iId/+YiHf/mIh3/5eHdv/QyMH///////////////////////// 152 | ////////////////////////+/Xp/+KxS/+ZbR//loZ1//f29f/y8O3/lYZ1/5ltH//js1D//fjv/+Dc 153 | 1/+0qZz/tKmc/7SpnP+0qZz/tKmc/7SpnP+0qZz/tKmc/7SpnP+0qZz/tKib/93Y0v//////4t7Z/+7r 154 | 6P/7+/r/3NfR//j39v/y7+3/39rV//7+///79en/4rFL/5ltH/+VhnX/8vDt/+7s6P+VhnX/mW0f/+Oz 155 | UP/89+3///////////////////////////////////////////////////////////////////////// 156 | //+xpJj/0MjB//Xz8f+hkoP/7ero/9vVz/+pnI7//Pz9//v16f/isUv/mW0f/5WGdf/u7Oj/7Onl/5WG 157 | df+ZbR//47NQ//z37f////////////////////////////////////////////////////////////// 158 | //////////////z7+//9/fz////+//v7+v/+/v7//v39//z7+v//////+/Xp/+KxS/+ZbR//lYZ1/+zp 159 | 5f/r6OT/lYZ1/5ltH//js1D//Pft//////////////////////////////////////////////////// 160 | ///////////////////9/f3/6ubj/+Pf2//j39v/5ODb/+Pf2//j39v/6OXh//z8/f/79en/4rFL/5lt 161 | H/+VhnX/6+jk/+vo5P+VhnX/mW0f/+OzUP/89+3///////////////////////////////////////// 162 | //////////////////////////////Ty8P+SgnD/emVP/3tnUf97Z1H/e2dR/3pmUP+LeWb/7uzp//z2 163 | 6v/isUv/mW0f/5WGdf/r6OT/7Onl/5WGdf+ZbR//47NQ//z37f/5+fj/tamd/+bi3f////////////Px 164 | 7//Uzcb//Pv7/9/a1P/k4Nv//////////////////v7+//Ty8P/w7uz/8O7s//Du7P/w7uz/8O7s//Px 165 | 7//+/v//+/Xp/+KxS/+ZbR//lYZ1/+zp5f/u7Oj/lYZ1/5ltH//js1D//vnw/9vV0P9cQif/o5SF//// 166 | ////////6+jk/39rVv+om4z/fWlT/8vDuv/////////////////6+vn/z8jA/8O6sf/Eu7L/xLuy/8S7 167 | sv/EurH/zMS8//j39//89ur/4rFL/5ltH/+VhnX/7uzo//Lw7f+VhnX/mW0f/+OzUP/9+O//ppiK/4Bs 168 | V/9+alT/5eHd////////////xbuy/1Q5Hf+Xh3X//fz8//////////////////X08v+gkoL/i3ll/4x6 169 | Z/+Memf/jHpn/4t5Zv+ainn/8O7s//z26v/isUv/mW0f/5WGdf/y8O3/9/b1/5aGdf+ZbR//5LNR//Hr 170 | 3/+Cblr/0cnC/6GSgv+pnI3///////f29f+VhXP/eWRO/3tnUf/g29b///////////////////////7+ 171 | /v///////v7+//7+/v///////v79////////////+/Xp/+KxS/+ZbR//loZ1//f29f/9/fz/mIl5/5lt 172 | H//js1D/9/Ln/9nUzv/6+vn/3djS/35qVP/r5+T/7+zp/6uekP/u6+j/vLGm/9DJwf////////////// 173 | ////////+vn4/8S7sf/j3tn/39nU/8e+tf/x7+z/xbyz//X08//89ur/4rFL/5ltH/+YiXn//f38//// 174 | //+ej4D/mW0f/+OzUP/89+3////////////9/f3/mop5/5SEcv++s6j/vLGm/72zqP+8sqf/vLGm/7uw 175 | pf/Fu7L/9/b0//39/f+uoZT/a1Q7/3ZhSv92YEn/bFY9/3plT/+Sgm//9/b1//z26v/isUv/mW0f/56P 176 | gP///////////6CRg/+ZbR//47NQ//z37f/////////////////h3Nf/lYV0/5GAbv+RgG7/kYBu/5GA 177 | bv+RgG7/kH9t/56QgP/x7+z/+Pf2/62hk//b1c//tqqe/760qf/Wz8j/pJaG/+7r6P//////+/Xp/+Kx 178 | S/+ZbR//oJGD////////////oJGD/5ltH//js1D//Pft//////////////////////////////////// 179 | //////////////////////////////////////////////////////////////////////////////// 180 | ///79en/4rFL/5ltH/+gkYP///////////+gkYP/mW0f/+KwSf/258f/+O3W//jt1f/47dX/+O3V//jt 181 | 1f/47dX/+O3V//jt1f/47dX/+O3V//jt1f/47dX/+O3V//jt1f/47dX/+O3V//jt1f/47dX/+O3V//jt 182 | 1f/47dX/+O7W//Xlw//hrkX/mW0f/6CRg////////////6CRgv+abiH/36Yw/96oOv/eqDv/3qg7/96o 183 | O//eqDv/3qg7/96oO//eqDv/3qg7/96oO//eqDv/3qg7/96oO//eqDv/3qg7/96oO//eqDv/3qg7/96o 184 | O//eqDv/3qg7/96oO//eqDv/3qc6/9+lMP+abiH/oJGC////////////opOE/2xKGf+KYiD/iWEg/4lh 185 | IP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lh 186 | IP+JYSD/iWEg/4lhIP+JYSD/iWEg/4lhIP+JYSD/imIg/2xKGf+ik4T////////////e2dT/tqug/7Wr 187 | oP+1q6D/taqf/62ilf+onI7/qJyO/6icjv+onI7/qJyO/6icjv+onI7/qJyO/6icjv+onI7/qJyO/6ic 188 | jv+onI7/qJyO/6icjv+onI7/qJyO/6icjv+topX/taqf/7WroP+1q6D/tqug/97Z1P////////////// 189 | /////////////////////////v7+//b18v/t6+f/6+nk/+vp5P/s6eT/7Onk/+zp5P/s6eT/7Onk/+zp 190 | 5P/s6eT/7Onk/+zp5P/s6eT/6+nk/+vp5P/t6+f/9vXy//7+/v////////////////////////////// 191 | //////////////////////////////////////////////r6+f/y8O3/7Onl/+nm4f/p5uH/6ebh/+nm 192 | 4f/p5uH/6ebh/+nm4f/p5uH/6ebh/+nm4f/s6eX/8vDt//r6+P////////////////////////////// 193 | ///////////////////////////////////////////////////////////////////7+/r/9vTy//Du 194 | 6//s6uX/6ufi/+nm4f/p5uH/6ufi/+zq5f/w7uv/9vTy//v7+v////////////////////////////// 195 | ////////////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 196 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 197 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= 198 | 199 | 200 | -------------------------------------------------------------------------------- /WindowsFormsApp1/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /images/demo1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itewqq/MathpixCsharp/2352378f698114aaf956af28b93e3f8c14ff0342/images/demo1.gif -------------------------------------------------------------------------------- /images/goodbye.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itewqq/MathpixCsharp/2352378f698114aaf956af28b93e3f8c14ff0342/images/goodbye.jpg -------------------------------------------------------------------------------- /images/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itewqq/MathpixCsharp/2352378f698114aaf956af28b93e3f8c14ff0342/images/icon.ico -------------------------------------------------------------------------------- /images/icon.svg: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------