blah blah blah is here! blah blah » Close
How can I obtain a bitmap (or jpg or png or...) of my application window?
i think you need to make a print screen so a way is to use the
System.Windows.Forms.SendKeys.Send("{PRTSC}");
void PrintForm(){ Bitmap bmp = new Bitmap(this.Width, this.Height); this.DrawToBitmap(bmp, new System.Drawing.Rectangle(0, 0, this.Width, this.Height)); bmp.Save("C:\\myImage.png", System.Drawing.Imaging.ImageFormat.Png);}
answered one year ago by:
Got feedack? Found a bug? report it here.
1 answers
i think you need to make a print screen so a way is to use the
System.Windows.Forms.SendKeys.Send("{PRTSC}");or you can print the form by using the graphics:
answered one year ago by:
1556