c#如何将窗体中Picturebox中的所有东西保存为jpg格式的图片

解决方案 »

  1.   

    所有东西是什么?picturebox又不是容器,PictureBox1.Image.Save("文件");
      

  2.   

    PictureBox1.Image.Save("aaa.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
      

  3.   

    我通过DLL在label控件上绘制了图形,我想将这个图形保存为JPEG图片有方法么,或不用Label控件,使用别的控件。
      

  4.   

    PictureBox1.Image.Save("aaa.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
    正确
      

  5.   

    PictureBox1.Image.Save("aaa.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
      

  6.   

    PictureBox1.Image.Save("aaa.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
    应该是这个,没错,我试过
      

  7.   

    “System.Runtime.InteropServices.ExternalException”类型的未经处理的异常出现在 System.Drawing.dll 中。其他信息: GDI+ 中发生一般性错误。我试验的时候光出现这个错误,是为什么呢