Image myImage = new Bitmap(300, 200);
Graphics g = Graphics.FromImage(myImage);
g.CopyFromScreen(new Point(Cursor.Position.X - 150,            Cursor.Position.Y - 25), new Point(0, 0), new Size(300, 200));
IntPtr dc1 = g.GetHdc();
g.ReleaseHdc(dc1);
this.pictureBox1.Image = myImage;  
myImage.Save("c:\\1.jpeg"); 需要更多功能,回复我。

解决方案 »

  1.   

    发给我吧,[email protected]
      

  2.   

    〈marquee>好东西,一定要顶!
      

  3.   

    记得当时用API写了100多行才实现,原来有个简单的方法,哈哈。
      

  4.   

    想学习这方面的知识!
    [email protected]
      

  5.   

    ^_^偶喜欢撒~~请发给偶研究研究~谢谢
    [email protected]
      

  6.   

    你好,我感兴趣,请发给我看看,谢谢   [email protected]
      

  7.   

    抓图 需要的DLL
    using System.Drawing;
    using System.Drawing.Imaging;//再经过8句将位图变换成整形数组矩阵。可以最大限度的提高图像处理速度。
    比 myBitmap.GetPixel(???)方法快100倍以上速度与C++指针操作不相上下。//获得图像
    Rectangle rec = new Rectangle(0, 0, myBitmap.Width, myBitmap.Height);
    BitmapData bmpData = myBitmap.LockBitsrec,ImageLockMode.ReadWrite,PixelFormat.Format32bppPArgb);         //将图像变换     
    IntPtr scan0 = bmpData.Scan0;
    int len = myBitmap.Width * myBitmap.Height;
    int[] pixels = new int[len];
    Marshal.Copy(scan0, pixels, 0, len);
    myBitmap.UnlockBits(bmpData);
    myBitmap.Dispose();DelegateShowLabelstr dc1 = new DelegateShowLabelstr(ShowLabelstr);
    DelegateShowLabelstrgz("处理完成", dc1); //回调其他线程              
      

  8.   

    学习图形操作,[email protected],谢谢
      

  9.   

    [email protected]
    谢谢哦!
      

  10.   

    [email protected]
    学习图形处理
    虽然现在用不上
    以后可能靠他混饭吃呢 :)
      

  11.   

    错了,[email protected]谢谢
      

  12.   

    做个记号:
    [email protected]
      

  13.   

    忘了寫郵箱了; [email protected]
      

  14.   


    顺便给我来一份学习学习[email protected]
      

  15.   

    [email protected]
    麻烦发一份给我3Q。
      

  16.   

    怎么还有错误啊~,LZ有没测试过copy过来的?
      

  17.   

    晕,,GDI+就是 System.Drawing. ...这里面的嘛,,好多功能的~~~想做什么不行啊,,嘿嘿~~
      

  18.   

    [email protected]
    谢谢楼主
      

  19.   

    Person me = new Person(Sex.Male, Nation.China);
    while (me.IsLiving)
    {
        me.Up();
        Thread.Sleep(1000);
    }
    me.Dispose();
    if (me.HaveChildren)
    {
       foreach (Person child in me.Children)
       {
          while (child.IsLiving)
          {
              child.Up();
              Thread.Sleep(1000); 
          }
       }
    }
      

  20.   

    [email protected]
    学习...................
      

  21.   

    thank you
    [email protected]
      

  22.   

    thank you
    [email protected]
      

  23.   

    学习中 Thank u
    [email protected]
      

  24.   

    请给我发一个
    [email protected]
      

  25.   

    请给我发一个
    [email protected]
      

  26.   

    写得很好
    发给我一个``谢谢``
    [email protected]
      

  27.   

    不好,偶来晚了
    [email protected]
    谢谢楼主
      

  28.   

    也请发个完整的给我研究研究
    [email protected]
    谢谢。
      

  29.   

    请发给我谢谢,来晚了
    [email protected]
      

  30.   

    请给我发一个
    [email protected]
    thanks a lot
      

  31.   

    请发给我谢谢,
    [email protected]
      

  32.   

    多谢楼主 [email protected]
      

  33.   

    [email protected] 等待源代码
      

  34.   

    [email protected] 发给我,多谢,我现在还不知道具体有哪些功能呀