I have to make a web page to make greetings cards.Here I have to capture the div or panel into an image.
I have these code.But the "PointToScreen" method does not worked in web application.It only worked at windows application.
Bitmap bmpScreenshot = new Bitmap(Convert.ToInt32(Panel1.Width), Convert.ToInt32(Panel1.Height), PixelFormat.Format32bppArgb);
// Create a graphics object from the bitmap
Graphics gfxScreenshot = Graphics.FromImage(bmpScreenshot);
//Point clientLocation = this.Panel1.PointToScreen(clientLocation);
// Take a screen shot of just the button2 control
gfxScreenshot.CopyFromScreen(this.PointToScreen(Panel1.Location), new Point(0, 0), this.Panel1.Height, CopyPixelOperation.SourceCopy);
// Size size = new Size(
// Save the screenshot
I got the code from "http://social.msdn.microsoft.com/forums/en-US/Vsexpressvb/thread/6788eb21-cab4-424c-88c9-f51eff902ea7/" here.
PLEASE help me its very very Urjent.
View Complete Post