CodePudding user response:
Using (Bitmap Bitmap=new Bitmap (panel1. ClientSize. Width,
Panel1. ClientSize. Height)) {
Panel1. DrawToBitmap (bitmap, panel1. ClientRectangle);
Bitmap. The Save (" C: \ \ "+ pagAtual +". BMP ", ImageFormat. BMP);
}
CodePudding user response:
Using (Bitmap Bitmap=new Bitmap (panel1. ClientSize. Width,
Panel1. ClientSize. Height)) {
Panel1. DrawToBitmap (bitmap, panel1. ClientRectangle);
Bitmap. The Save (" C: \ \ "+ pagAtual +". BMP ", ImageFormat. BMP);
}