![](https://img-blog.csdnimg.cn/20191016122056331.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
C#
深色風信子
这个作者很懒,什么都没留下…
展开
-
C# 连接 MySQL 及 DBhelper 的封装
class DBhelper { private MySqlConnection connection=null; private MySqlDataReader mysqlread=null; /// <summary> /// 查询语句注值 /// </summary> /// <param name="sql">原始语句</param> //原创 2017-05-23 18:11:19 · 3166 阅读 · 0 评论 -
C# OpenCV 图形图像 图像处理28 特征匹配
C# OpenCV-4.X 图像处理28 特征匹配using OpenCvSharp;using OpenCvSharp.XFeatures2D;namespace OpenCV { class OpenCV { static void Main(string[] args) { Cv2.ImShow("OpenCV", MatchBySURF1()); Cv2.WaitKey(); } //原创 2021-02-25 21:56:38 · 1549 阅读 · 2 评论 -
C# OpenCV 图形图像 图像处理26.4 SIFT 特征检测
C# OpenCV-4.X 图像处理26.4 SIFT 特征检测//// 摘要:// The SIFT constructor.//// 参数:// nFeatures:// The number of best features to retain. The features are ranked by their scores// (measured in SIFT algorithm as the local contrast)//// nOctav原创 2021-02-24 22:46:28 · 654 阅读 · 0 评论 -
C# OpenCV 图形图像 图像处理26.3 SURF 特征检测
C# OpenCV-4.X 图像处理26.3 SURF 特征检测//// 摘要:// The SURF constructor.//// 参数:// hessianThreshold:// Only features with keypoint.hessian larger than that are extracted.//// nOctaves:// The number of a gaussian pyramid octaves that the d原创 2021-02-24 22:42:56 · 886 阅读 · 0 评论 -
C# 处理json
你需要一个json处理的类库 Newtonsoft.Json.dll 一般VS都自带的 如果没有请下载Newtonsoft.Json.dll普通使用string context=&quot;{\&quot;name\&quot;:\&quot;张三\&quot;,\&quot;age\&quot;:\&quot;14\&quot;}&q原创 2018-05-15 19:48:54 · 553 阅读 · 0 评论 -
C# 在线文件下载
C#下载文件 如果法一不行就用发二/// &amp;amp;lt;summary&amp;amp;gt;/// 文件下载/// &amp;amp;lt;/summary&amp;amp;gt;/// &amp;amp;lt;param name=&amp;quot;url&amp;quot;&amp;amp;gt;URL地址&amp;amp;lt;/pa原创 2018-05-14 15:13:40 · 2009 阅读 · 0 评论 -
C# 解析XML文件
本文以解析全国省份、(市/区)、县为例(就是淘宝填写地址的选项)我在这里使用 XmlDocument 通过 using System.Xml 命名空间XmlDocument xml=new XmlDocument();//先实例化 XmlDocumentxml.Load(path);//path可以为相对路径或者为绝对路径XmlNodeList province=xml.Do...原创 2018-04-09 00:57:57 · 1546 阅读 · 0 评论 -
C# 委托
C# 一个窗口中的控件不能直接在其他的类中更改( 除非你把这个控件改为 public ) 当然还有更好的方法–使用委托 ( delegate ) C# 中委托的实现需要使用 delegate 关键字委托的实现方法一 ://假如 window1 要控制 windows2 中的控件//窗口一public partial class window1:Form { publi...原创 2018-03-05 20:14:33 · 170 阅读 · 0 评论 -
C# WinFormk 自定义窗口移动
private bool click = false;//鼠标是否点击private int xposition = 0;//面板相对屏幕的X轴坐标private int yposition = 0;//面板相对屏幕的Y轴坐标//某个控件当鼠标左键按下时private void label2_MouseDown(object sender,MouseEventArgs e) { ...原创 2018-03-05 09:41:41 · 1092 阅读 · 0 评论 -
C# 放缩图片
using System;using System.Collections.Generic;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;namespace MusicPlayer.SourceCode.Tools { class ImageTool ...原创 2018-01-24 19:29:56 · 329 阅读 · 0 评论 -
C# DataGridView添加新行
index=dataGridView1.Rows.Add(); dataGridView1.Rows[1].Cells[0].Value=“第一行第一列”; dataGridView1.Rows[2].Cells[1].Value=”第二行第二列“”;原创 2018-01-31 13:32:43 · 5863 阅读 · 5 评论 -
C# AxWindowsMediaPlayer播放音乐
AxWindowsMediaPlayer player = new AxWindowsMediaPlayer();// AxWindowsMediaPlayer 属于第三方插件所以要初始化player.BeginInit();this.Controls.Add(player);player.EndInit();player.URL = "G:\\CloudMusic\\金莎 - ...原创 2018-01-02 21:44:09 · 1293 阅读 · 0 评论 -
C# TreeView显示图片和文字对应
首先在工具栏中拖出TreeView和ImageList并在ImageList中添加图片this.treeView1.ShowLines = false; this.treeView1.ShowPlusMinus = false; this.treeView1.ShowRootLines = false; this.treeView1.HideSelection = false; this.t原创 2018-01-01 12:30:15 · 4546 阅读 · 0 评论 -
C# 加密与解密
using System;using System.IO;using System.Security.Cryptography;using System.Text;namespace MusicAndNet.utils { class Security { /// <summary> /// 加密数据 /// <...原创 2017-05-23 18:22:22 · 443 阅读 · 0 评论 -
C# DataGridView运用
DataTable table = new DataTable(); //为DataGridView添加新的十行,并未每行设置数据,假设原来就有4列 for(int i=0;i<10;i++) { DataRow row = table.NewRow(); this.dataGridView1.Rows.Add(row); this.dataGrid原创 2017-05-23 18:19:03 · 259 阅读 · 0 评论