Home > Net >  The Panel, Graphics, how to implement the save image Bitmap three??? (c #)
The Panel, Graphics, how to implement the save image Bitmap three??? (c #)

Time:12-30

Palette is created by a Panel, how to get to the content of the drawing board, and to save?

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);
}
  •  Tags:  
  • C#