Generating Bitmap image of a panel?
I want to generate a bitmap image of a panel.
Panels size is same as that of A4 size paper.
How can i do this in desktop application using C#.

You can use DrawToBitmap():

Bitmap panelImage = new Bitmap(panel1.Width, panel1.Height);
panel1.DrawToBitmap(panelImage, panel1.ClientBounds);

// Show the image of the panel in a pictureBox
pictureBox1.Image = panelImage;

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.