• 大小: 0.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 截图  屏幕  

资源简介

右键Form1窗体>>点击""

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
           
        }
        public static Bitmap GetBitmap(API.RECT rect)
        {
            //要截图的长宽
            int width = rect.X2 - rect.X1;
            int height = rect.Y2 - rect.Y1;
            Bitmap image = new Bitmap(width height);
            //创建画布
            Graphics g = Graphics.FromImage(ima

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-04-24 16:43  WindowsFormsApplication1\
     文件         914  2014-04-24 16:42  WindowsFormsApplication1.sln
     目录           0  2014-04-24 16:42  WindowsFormsApplication1\bin\
     目录           0  2014-04-25 11:54  WindowsFormsApplication1\bin\Debug\
     文件        9728  2014-04-25 11:54  WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件       22016  2014-04-25 11:54  WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       11600  2014-04-25 11:39  WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件         490  2010-03-17 22:39  WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
     文件        1835  2014-04-25 11:54  WindowsFormsApplication1\Form1.cs
     文件        3592  2014-04-24 16:50  WindowsFormsApplication1\Form1.Designer.cs
     文件        6022  2014-04-24 16:50  WindowsFormsApplication1\Form1.resx
     目录           0  2014-04-24 16:42  WindowsFormsApplication1\obj\
     目录           0  2014-04-24 16:42  WindowsFormsApplication1\obj\x86\
     目录           0  2014-04-25 11:54  WindowsFormsApplication1\obj\x86\Debug\
     文件        2164  2014-04-24 16:42  WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6408  2014-04-25 11:54  WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         272  2014-04-25 11:54  WindowsFormsApplication1\obj\x86\Debug\GenerateResource.read.1.tlog
     文件         710  2014-04-25 11:54  WindowsFormsApplication1\obj\x86\Debug\GenerateResource.write.1.tlog
     目录           0  2014-04-24 16:42  WindowsFormsApplication1\obj\x86\Debug\TempPE\
     文件        2354  2014-04-25 11:54  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt
     文件        9728  2014-04-25 11:54  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.exe
     文件         180  2014-04-25 11:54  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Form1.resources
     文件       22016  2014-04-25 11:54  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.pdb
     文件         180  2014-04-25 11:54  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources
     文件         505  2014-04-24 16:42  WindowsFormsApplication1\Program.cs
     目录           0  2014-04-24 16:42  WindowsFormsApplication1\Properties\
     文件        1404  2014-04-24 16:42  WindowsFormsApplication1\Properties\AssemblyInfo.cs
     文件        2899  2014-04-24 16:42  WindowsFormsApplication1\Properties\Resources.Designer.cs
     文件        5612  2014-04-24 16:42  WindowsFormsApplication1\Properties\Resources.resx
     文件        1110  2014-04-24 16:42  WindowsFormsApplication1\Properties\Settings.Designer.cs
     文件         249  2014-04-24 16:42  WindowsFormsApplication1\Properties\Settings.settings
............此处省略2个文件信息

评论

共有 条评论