01 2020 档案
摘要:服务端 1 using System; 2 using System.Collections.Generic; 3 using System.Net; 4 using System.Net.Sockets; 5 using System.Text; 6 using System.Threading;
阅读全文
摘要:Mat mat = OpenCvSharp.Extensions.BitmapConverter.ToMat(image); //bitmap转 matBitmap bitmap = OpenCvSharp.Extensions.BitmapConverter.ToBitmap(mat); // m
阅读全文
摘要:https://blog.csdn.net/lordwish/article/details/83513851
阅读全文
摘要:1.服务端界面 2.客户端界面 在Server端需要改一下自身的IP地址和端口号 项目地址:
阅读全文
摘要:1.DelegateCommand.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 u
阅读全文
摘要:看到多线程的其他博客,在c++中推荐使用_beginthreadex而不是createThread创建线程。 _beginthreadex()是C运行库函数,CreateThread()是windows API。CreateThread在关闭时需要CloseHandle,容易造成内存泄漏等…… 1.
阅读全文
摘要:using System.Threading; 1.定义线程 Thread ThreadInspect; 2。创建线程对象,并设置线程函数 ThreadInspect = new Thread(() => evaluate()); //开启线程 3.线程函数 private void evaluat
阅读全文
摘要:在wpf mvvm框架中,通过Image控件的 Source属性绑定BitmapImage动态显示图片 1.MainWindowVIewModel.cs using System.Windows.Media.Imaging; //使用BitMapImage类型using System.Drawing
阅读全文
摘要:1.创建选择文件夹对话框 1 List<FileInfo> ImageFileInfo = new List<FileInfo>(); //文件信息 2 FolderBrowserDialog fbd = new FolderBrowserDialog(); //选择文件夹 3 if (fbd.Sh
阅读全文
摘要:一。MVVM为Model—View—ViewModel,可以实现UI和业务逻辑分离、解耦合,业务逻辑代码不与UI中具体的控件关联。 View中即UI界面,ViewModel中则是业务逻辑,两者之间通过数据绑定实现。 绑定分为数据绑定和命令绑定。 数据属性如TextBox,Slider等可以改变值的控
阅读全文