• 大小: 0.13M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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 drawpartImage
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        [DllImport(“user32.dll“ EntryPoint = “GetSystemMetrics“)]
        private static extern int GetSystemMetrics(int mVal);
        private void button1_Click(object sender EventArgs e)
        {
            Bitmap _Source = new Bitmap(GetSystemMetrics(0) GetSystemMetrics(1));
            using (Graphics g = Graphics.FromImage(_Source))
            {
                g.CopyFromScreen(0 0 0 0 _Source.Size);
                g.Dispose();
            }
            pictureBox1.Image = _Source;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         929  2009-02-07 08:48  sj\01\drawpartImage\drawpartImage.sln
     文件       14848  2009-02-07 08:54  sj\01\drawpartImage\drawpartImage.suo
     文件        3772  2009-02-07 08:52  sj\01\drawpartImage\drawpartImage\drawpartImage.csproj
     文件         928  2009-02-07 08:54  sj\01\drawpartImage\drawpartImage\Form1.cs
     文件        2830  2009-02-07 08:52  sj\01\drawpartImage\drawpartImage\Form1.Designer.cs
     文件        5814  2009-02-07 08:52  sj\01\drawpartImage\drawpartImage\Form1.resx
     文件         494  2009-02-07 08:48  sj\01\drawpartImage\drawpartImage\Program.cs
     文件        8704  2009-02-07 08:54  sj\01\drawpartImage\drawpartImage\bin\Debug\drawpartImage.exe
     文件       24064  2009-02-07 08:54  sj\01\drawpartImage\drawpartImage\bin\Debug\drawpartImage.pdb
     文件       14328  2009-02-07 08:54  sj\01\drawpartImage\drawpartImage\bin\Debug\drawpartImage.vshost.exe
     文件         490  2007-07-21 01:33  sj\01\drawpartImage\drawpartImage\bin\Debug\drawpartImage.vshost.exe.manifest
     文件         686  2009-02-07 08:54  sj\01\drawpartImage\drawpartImage\obj\Debug\drawpartImage.csproj.FileListAbsolute.txt
     文件         847  2009-02-07 08:52  sj\01\drawpartImage\drawpartImage\obj\Debug\drawpartImage.csproj.GenerateResource.Cache
     文件        8704  2009-02-07 08:54  sj\01\drawpartImage\drawpartImage\obj\Debug\drawpartImage.exe
     文件         180  2009-02-07 08:52  sj\01\drawpartImage\drawpartImage\obj\Debug\drawpartImage.Form1.resources
     文件       24064  2009-02-07 08:54  sj\01\drawpartImage\drawpartImage\obj\Debug\drawpartImage.pdb
     文件         180  2009-02-07 08:52  sj\01\drawpartImage\drawpartImage\obj\Debug\drawpartImage.Properties.Resources.resources
     文件        1358  2009-02-07 08:48  sj\01\drawpartImage\drawpartImage\Properties\AssemblyInfo.cs
     文件        2876  2009-02-07 08:48  sj\01\drawpartImage\drawpartImage\Properties\Resources.Designer.cs
     文件        5612  2009-02-07 08:48  sj\01\drawpartImage\drawpartImage\Properties\Resources.resx
     文件        1098  2009-02-07 08:48  sj\01\drawpartImage\drawpartImage\Properties\Settings.Designer.cs
     文件         249  2009-02-07 08:48  sj\01\drawpartImage\drawpartImage\Properties\Settings.settings
     文件         911  2009-02-07 08:54  sj\02\drawcur\drawcur.sln
     文件       14848  2009-02-07 08:58  sj\02\drawcur\drawcur.suo
     文件        3760  2009-02-07 08:55  sj\02\drawcur\drawcur\drawcur.csproj
     文件        2662  2009-02-07 08:57  sj\02\drawcur\drawcur\Form1.cs
     文件        2800  2009-02-07 08:56  sj\02\drawcur\drawcur\Form1.Designer.cs
     文件        5814  2009-02-07 08:56  sj\02\drawcur\drawcur\Form1.resx
     文件         488  2009-02-07 08:54  sj\02\drawcur\drawcur\Program.cs
     文件        9216  2009-02-07 08:57  sj\02\drawcur\drawcur\bin\Debug\drawcur.exe
     文件       19968  2009-02-07 08:57  sj\02\drawcur\drawcur\bin\Debug\drawcur.pdb
............此处省略37个文件信息

评论

共有 条评论