예제 #1
0
        private void pbImg_MouseMove(object sender, MouseEventArgs e)
        {
            Thread.Sleep(6);//减少cpu占用率
            mousePostion.Text = e.Location.ToString();
            if (tools.startDraw)
            {
                switch (sType)
                {
                case "Dot": tools.DrawDot(e); break;

                case "Eraser": tools.Eraser(e); break;

                case "Word": tools.DrawWord(e); break;

                default: tools.Draw(e, sType); break;
                }
            }
        }