How to take snap shot /print screen of client area and save as image in database?

谁说我不能喝 提交于 2019-12-19 10:28:43

问题


I have asked this question before but now with more elaborate way. I working on this for past two months and the result is zero. All i need is .i am allowing the client to create a diagram by dropping the images on a div whose background is a esri Map . When they clik save ,the snapshot of the whole div has to be saved as image in database.

If some one could suggest activx plug-in for taking print screen ot capture the client screen .pls suggest

EDITED I tried something like savefrom URL ,but i dont want to save the whole page ,only div.

HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(url);
    WebResponse myResp = myReq.GetResponse();

and

        WebClient myWebClient = new WebClient();
        // Download home page data.
        Console.WriteLine("Downloading " + remoteUri);
        // Download the Web resource and save it into a data buffer.
        byte[] myDataBuffer = myWebClient.DownloadData(remoteUri);

回答1:


I would be more focused on extracting/scraping the div locations (that the user's dragged) and passing them off to the server so it can be processed. The processing would include creating a Bitmap, placing the ESRI Map as the background (with any applicable off-sets), then overlaying the "movable/dragged" DIVs [more specifically, the images that are associated to them] on top of that base, then exporting the whole entry as a "Screenshot".

You should be looking more at reproducing the outcome instead of capturing it (at least if this is planned for a web-client implementation).



来源:https://stackoverflow.com/questions/4852082/how-to-take-snap-shot-print-screen-of-client-area-and-save-as-image-in-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!