![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
weixin_46114397
这个作者很懒,什么都没留下…
展开
-
C#基础学习(细节)
获取当前时间:常用格式:yyyy-MM-dd HH:mm:ss static void Main(string[] args)//主线程 { var dt = DateTime.Now; Console.WriteLine(dt); } static void Main(string[] args)//主线程 { var dt = DateTime.Now;原创 2020-08-19 17:25:55 · 83 阅读 · 0 评论 -
C#测量图片灰度值
在网上查了很久,都没有计算整张图片灰度值的资料,有的只是计算某个像素点的灰度值,于是我就把整张图片的像素点遍历,将其转化为灰度时的灰度值相加再除以像素点个数,得到图片的平均灰度值。(ps:当图片较大时会有点卡顿).xaml代码:<Window x:Class="WpfApp11.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:原创 2020-08-04 15:39:19 · 1385 阅读 · 0 评论 -
WPF实现在InkCanvas上的绘画以及擦除操作(ComboBox)demo
可下拉菜单选择操作类型,进行绘画,移动控件等操作MainWindow.xmal<Window x:Class="WpfApp10.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mi原创 2020-08-01 22:10:09 · 885 阅读 · 0 评论