?# Visual Studio 2017 Windows forms
Panel Mainpanel:
....
MainBitmap memoryImage;
Rectangle rect = new Rectangle();
rect.Height = Mainpanel.Height;
rect.Width = Mainpanel.Width;
rect.X = 0;
rect.Y = 0;
memoryImage = new Bitmap(Mainpanel.Width, Mainpanel.Height);
Mainpanel.DrawToBitmap(memoryImage, rect);
pictureBoxMiniature.Image = memoryImage;
the DrawToBitmap method returns a picture of only the visible part of the control (Mainpanel)
I need a picture of everything
Panel Mainpanel:
....
MainBitmap memoryImage;
Rectangle rect = new Rectangle();
rect.Height = Mainpanel.Height;
rect.Width = Mainpanel.Width;
rect.X = 0;
rect.Y = 0;
memoryImage = new Bitmap(Mainpanel.Width, Mainpanel.Height);
Mainpanel.DrawToBitmap(memoryImage, rect);
pictureBoxMiniature.Image = memoryImage;
the DrawToBitmap method returns a picture of only the visible part of the control (Mainpanel)
I need a picture of everything