很简单,就是先全屏截图,然后再按需要裁剪就可以了。 所以,首先要获取桌面的大小,代码如下: public class PrimaryScreen { #region Win32 API [DllImport("user32.dll")] static extern IntPtr GetDC(IntP ...
分类:
其他好文 时间:
2020-04-23 20:47:37
阅读次数:
60
1 #region 获取内、外网Ip 2 3 /// <summary> 4 /// 获取本地ip地址,优先取内网ip 5 /// </summary> 6 public static String GetLocalIp() 7 { 8 String[] Ips = GetLocalIpAddres ...
#Region "过滤sql语句" Public Shared Function denny(ByVal id) As String id = Replace(id, "'", "") id = Replace(id, " and ", "") id = Replace(id, "select ", ...
分类:
数据库 时间:
2020-04-13 15:22:32
阅读次数:
88
using System; using System.Text; using System.Text.RegularExpressions; namespace Utilities { /// /// 共用工具类 /// public static class Tools { region 得到字符 ...
ylbtech-Code-Serialization:Xml序列化与Xml反序列化 1.返回顶部 1、 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.T ...
分类:
其他好文 时间:
2020-04-11 18:32:55
阅读次数:
60
ylbtech-Code-Convert:Image to base64 1. C# 返回顶部 1、 #region convert image to base64 public string ImageToBase64(Image image, System.Drawing.Imaging.Ima ...
分类:
其他好文 时间:
2020-04-11 17:02:40
阅读次数:
94
这么做还是有一些意义的,避免重复处理Task<IAsyncEnumerable>实在是有些复杂,如果代码还要处理IAsyncEnumerable的话尤为如此,将二者统一还是有一定意义的 #region AsAsyncEnumerable public static async IAsyncEnume ...
分类:
编程语言 时间:
2020-04-11 13:16:45
阅读次数:
66
ylbtech-System.Reflection.ParameterInfo.cs 1.返回顶部 1、 #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\Pro ...
分类:
其他好文 时间:
2020-04-11 10:21:00
阅读次数:
62
ylbtech-System.Reflection.ParameterAttributes.cs 1.返回顶部 1、 #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // ...
分类:
其他好文 时间:
2020-04-11 10:19:13
阅读次数:
71
ylbtech-System.Reflection.LocalVariableInfo.cs 1.返回顶部 1、 #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C: ...
分类:
其他好文 时间:
2020-04-11 10:09:24
阅读次数:
64