Esempio n. 1
0
        public FrmCapture(bool isflag = false)
        {
            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.None;
            Screen[] screens = Screen.AllScreens;
            if (screens.Length == 2 && isflag == true)
            {
                this.Location = screens[0].WorkingArea.Location;
                this.Size     = new Size(screens[1].Bounds.Width,
                                         screens[1].Bounds.Width);
            }
            else
            {
                this.Location = new Point(0, 0);
                this.Size     = new Size(Screen.PrimaryScreen.Bounds.Width,
                                         Screen.PrimaryScreen.Bounds.Height);
            }

            this.TopMost       = true;
            this.ShowInTaskbar = false;

            m_MHook                      = new MouseHook();
            this.FormClosing            += (s, e) => { m_MHook.UnLoadHook(); this.DelResource(); };
            imageProcessBox1.MouseLeave += (s, e) => this.Cursor = Cursors.Default;
            //后期一些操作历史记录图层
            m_layer = new List <Bitmap>();
        }
Esempio n. 2
0
        public FrmCapture()
        {
            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.None;
            this.Location        = new Point(0, 0);
            this.Size            = new Size(Screen.PrimaryScreen.Bounds.Width,
                                            Screen.PrimaryScreen.Bounds.Height);
            this.TopMost       = true;
            this.ShowInTaskbar = false;

            m_MHook                      = new MouseHook();
            this.FormClosing            += (s, e) => { m_MHook.UnLoadHook(); this.DelResource(); };
            imageProcessBox1.MouseLeave += (s, e) => this.Cursor = Cursors.Default;
            //后期一些操作历史记录图层
            m_layer = new List <Bitmap>();
        }