Example #1
0
        /// <summary>
        /// 重绘picbox
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void picBoxEditor_Paint(object sender, PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            //绘制背景(相当于刷新)
            charEditor.DrawBackground(e.Graphics);
            //绘制笔画
            charEditor.DrawStrokes(e.Graphics);
            //绘制笔画骨骼
            charEditor.DrawBones(e.Graphics);
        }