How to take snap shot /print screen of client area

2019-02-19 23:13发布

问题:

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).