首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C#怎么保存picturebox上的图片,并且保存picturebox上的label控件

2013-07-20 
C#如何保存picturebox上的图片,并且保存picturebox上的label控件大家好,请教大家,我想保存picturebox上的

C#如何保存picturebox上的图片,并且保存picturebox上的label控件
大家好,请教大家,我想保存picturebox上的图像,图像上其实有label控件编辑的文字,但是怎么也显示不了上面的文字,怎么办,请教大家指点,谢谢
[解决办法]
直接上图片上写字,不要通过label实现。

 Graphics g = Graphics.FromImage(pictureBox1.Image);
            Pen pen=new Pen(Color.Crimson);
            Brush brush=new SolidBrush(Color.Cyan);
            Font drawFont = new Font("Arial", 10, FontStyle.Bold, GraphicsUnit.Millimeter);
            g.DrawString("求分求鼓励", drawFont, brush, 0, 0);
            pictureBox1.Image.Save(@"C:\Users\ll\Desktop\1.jpg");

热点排行