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");