Hi,
i have a web-browser control, through this i am able to navigate diffrent sites. how to take the bitmap of the site we visit.
Thanks GrabIt
Hi,
i have a web-browser control, through this i am able to navigate diffrent sites. how to take the bitmap of the site we visit.
Thanks GrabIt
The bitmap you created should now contain an image of that area of the screen.
Something like this will work -
Bitmap bitmap = new Bitmap(webBrowser1.Width, webBrowser1.Height);
Graphics g = Graphics.FromImage(bitmap);
g.CopyFromScreen(webBrowser1.PointToScreen(webBrowser1.Location), new Point(), webBrowser1.Size);
bitmap.Save(@"c:\\browser.jpg", ImageFormat.Jpeg);
bitmap.Dispose();