Esempio n. 1
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>();
        }