Is it possible to take a screen capture of a particular area of a web-page开发者_C百科 from the web-page's own ASP.NET code?
I need to display 6 images that are stacked on top of one another using CSS, and I'd like to offer the user the ability to right-click save-as if possible by stacking the screen capture on top top of the original image stack.
Any thoughts?
Thanks
Well it's not possible with ASP.NET to capture something the clients see. ASP.NET runs on the server, while CSS is client side.
You could maybe look into GDI+ and program the stack of images into an JPEG image.
But otherwise I think you're out of luck.
Hope this helps.
There are tools allowing you to capture a screenshot of a webpage. These tools are not intended to be used in an ASP.NET environment. You cannot capture the contents of a page before the page has been rendered or within it (chicken and egg problem). You could have an external service which sends requests to the webpage and saves screenshots of it in time. Your webpage could then use these screenshots to display them to the user.
精彩评论