基于C#语言的截图小工具

#基于C#语言的截图小工具
//窗体界面在这里插入图片描述//详细代码如下(截图按钮的点击事件)
在这里插入图片描述//这几行代码必不可少,放在Form:form下
[DllImport(“gdi32.dll”)]
public static extern IntPtr CreateDC(string lpszDriver, string lpszDevice, string lpszoutput, IntPtr lpdate);
[DllImport(“gdi32.dll”)]
public static extern bool BitBlt(IntPtr hdcDest,int x,int y,int widht,int hight,IntPtr hdcsrc,int xsrc,int ysrc,System.Int32 dw);
//using指令集合
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Runtime.InteropServices;

我的联系方式:[email protected]

猜你喜欢

转载自blog.csdn.net/sxh06/article/details/99590963