Esempio n. 1
0
 /// <summary>
 /// Guarda el form form2Save en el escritorio como PNG.
 /// </summary>
 /// <param name="form2Save"></param>
 public static void toPng(System.Windows.Forms.Form form2Save)
 {
     using (var bmp = new System.Drawing.Bitmap(form2Save.Width, form2Save.Height))
     {
         form2Save.DrawToBitmap(bmp, new System.Drawing.Rectangle(0, 0, bmp.Width, bmp.Height));
         bmp.Save(CData.ImagesFolder + @"\" + CData.PNGName);
     }
 }