Hi I have a picturebox that has other controls over it like labe and textbox and other image over it.
But when I take capture of that area, and save it as .jpg it shows only white image and labels, text, image is not included.
Here is my code for capture
What is the correct code to do that?Code:Rectangle form = this.pictureBox1.Bounds; using (Bitmap bitmap = new Bitmap(form.Width, form.Height)) { using (Graphics graphic = Graphics.FromImage(bitmap)) { pictureBox1.DrawToBitmap(bitmap, new Rectangle(0, 0, this.pictureBox1.Width, this.pictureBox1.Height)); } bitmap.Save("D://test.jpg", ImageFormat.Bmp); }
Thanks,




Reply With Quote