Example #1
0
        private void 贴图ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frmpaste frmpaste = new Frmpaste(GetBitmap(), startPoint);

            frmpaste.Show();
            EndShoot();
        }
Example #2
0
        private void Form1_KeyUp(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Escape:
                EndShoot();
                break;

            case Keys.C:
                if (imgSize.Width > 0 && imgSize.Height > 0)
                {
                    CopyImg();
                }
                break;

            case Keys.T:
                if (imgSize.Width > 0 && imgSize.Height > 0)
                {
                    Frmpaste frmpaste = new Frmpaste(GetBitmap(), startPoint);
                    frmpaste.Show();
                    EndShoot();
                }
                break;

            case Keys.R:
                Clipboard.SetText($"{lblcolor.ForeColor.R}, {lblcolor.ForeColor.G}, {lblcolor.ForeColor.B}");
                break;

            case Keys.H:
                Clipboard.SetText($"#{lblcolor.ForeColor.R.ToString("X")}{lblcolor.ForeColor.G.ToString("X")}{lblcolor.ForeColor.B.ToString("X")}");
                break;

            default:
                break;
            }
        }