[求助]如何保存picturebox的图片?
我用这个代码试图保存绘制在picturebox上的图片,
saveFileDialog1.FileName = "实验图";
saveFileDialog1.Filter = "jpg图片(*.jpg)|*.jpg|位图文件|*.bmp|所有文件|*.*";
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
pictureBox2.Image.Save(saveFileDialog1.FileName);
}
可是系统提示错误说image是NULL,请教各位应该怎么保存图片啊?