• 大小: 4.98MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-09-23
  • 语言: C#
  • 标签: QQ聊天  

资源简介

代码完整,全新改版。直接运行,无需调试。界面美观。功能齐全,下载可查,为了分数,存了很久的软件了。(自主研发)

资源截图

代码片段和文件信息

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;

namespace MyQQ
{
    public partial class CaptureForm : Form
    {
        public CaptureForm()
        {
            InitializeComponent();

            this.MouseDown += new MouseEventHandler(mouse_Click);
            this.MouseUp += new MouseEventHandler(mouse_Up);
            this.MouseMove += new MouseEventHandler(mouse_Move);


            MyPen.Dashstyle = System.Drawing.Drawing2D.Dashstyle.Dot;
            g = this.CreateGraphics();
        }

        public void CaptureImageToClipboard(Point SourcePoint Point DestinationPoint Rectangle SelectionRectangle)
        {
            using (Bitmap bitmap = new Bitmap(SelectionRectangle.Width SelectionRectangle.Height))
            {
                using (Graphics g = Graphics.FromImage(bitmap))
                {
                    g.CopyFromScreen(SourcePoint DestinationPoint SelectionRectangle.Size);

                }
                Clipboard.SetImage(bitmap);
            }
        }//


        Graphics g;
        Pen MyPen = new Pen(Color.Blue 1);
        Pen EraserPen = new Pen(Color.White 1);

        public bool LeftButtonDown = false;


        public Point ClickPoint = new Point();
        public Point ReleasePoint = new Point();
        public Point LastPoint = new Point();
        public Point CurrentPoint = new Point();


        private Form m_InstanceRef = null;
        public Form InstanceRef
        {
            get
            {
                return m_InstanceRef;
            }
            set
            {
                m_InstanceRef = value;
            }
        }





        private void mouse_Click(object sender MouseEventArgs e)
        {

            g.Clear(Color.White);
            LeftButtonDown = true;
            ClickPoint = new Point(System.Windows.Forms.Control.MousePosition.X System.Windows.Forms.Control.MousePosition.Y);


        }

        private void mouse_Up(object sender MouseEventArgs e)
        {
            LeftButtonDown = false;
            ReleasePoint = new Point(System.Windows.Forms.Control.MousePosition.X System.Windows.Forms.Control.MousePosition.Y);

            SaveScreenToClipBoard();


            this.Hide();

        }

        private void mouse_Move(object sender MouseEventArgs e)
        {

            if (LeftButtonDown)
            {
                g.DrawRectangle(EraserPen ClickPoint.X ClickPoint.Y LastPoint.X - ClickPoint.X LastPoint.Y - ClickPoint.Y);
                LastPoint = new Point(Cursor.Position.X Cursor.Position.Y);
                g.DrawRectangle(MyPen ClickPoint.X ClickPoint.Y Cursor.Position.X - ClickPoint.X Cursor.Position.Y - ClickPoint.Y);
                CurrentPoint = new Point(Cursor.Position.X Cursor.

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        423  2012-04-13 17:55  QQ\QQ\MyQQ\app.config

     文件       2680  2007-09-14 10:04  QQ\QQ\MyQQ\bin\Debug\face\0.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\1-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\1.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\10-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\10.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\100-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\100.bmp

     文件       2680  2007-09-14 10:04  QQ\QQ\MyQQ\bin\Debug\face\101.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\11-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\11.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\12-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\12.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\13-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\13.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\14-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\14.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\15-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\15.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\16-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\16.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\17-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\17.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\18-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\18.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\19-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\19.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\2-1.bmp

     文件       4856  2007-06-19 11:02  QQ\QQ\MyQQ\bin\Debug\face\2.bmp

     文件       1080  2007-06-19 10:58  QQ\QQ\MyQQ\bin\Debug\face\20-1.bmp

............此处省略271个文件信息

评论

共有 条评论