您的位置:首页 > 编程语言 > C#

C#保存PictureBox或Bitmap图片为bmp|png|gif|jpg格式

2011-04-10 15:50 756 查看
start

Bitmap bmp = new Bitmap(pictureBox1.Width, pictureBox1.Height);
pictureBox1.DrawToBitmap(bmp, new Rectangle(0, 0, pictureBox1.Width, pictureBox1.Height));
bmp.Save("C:\\123.png", System.Drawing.Imaging.ImageFormat.Png);end
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: