private void 保存图片ToolStripMenuItem_Click(object sender, EventArgs e) { int h = costPS.Size.Height; int w = costPS.Size.Width; Bitmap bmp = new Bitmap(w, h); Rectangle rt = new Rectangle(0, 0, w, h); costPS.DrawToBitmap(bmp, rt); bmp.Save("d:\\tmp\\abc.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); MessageBox.Show("已经保存"); }