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

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

转载于:https://www.cnblogs.com/greatverve/archive/2011/04/10/save-bitmap.html

你可能感兴趣的:(C#保存PictureBox或Bitmap图片为bmp|png|gif|jpg格式)