使用GDI绘制文本

/// <summary>
        /// 定义一个绘制文本
        /// </summary>
        public void Texts()
        {
            Graphics g = this.CreateGraphics();
            g.DrawString("嘿嘿,O(∩_∩)O哈哈~",new Font("楷体",20),Brushes.Black,new Point(200,200));
        }
        private void btnText_Click(object sender, EventArgs e)
        {
            //调用
            Texts();
        }

 

posted @ 2015-07-26 23:11  Lin佳娜  阅读(235)  评论(0编辑  收藏  举报