简体   繁体   English

如何拍摄客户区域的快照/打印屏幕并将其另存为数据库中的图像?

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

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 . 我只需要.i允许客户端通过将图像拖放到背景为esri Map的div上来创建图表。 When they clik save ,the snapshot of the whole div has to be saved as image in database. 当他们点击保存时,整个div的快照必须作为图像保存在数据库中。

If some one could suggest activx plug-in for taking print screen ot capture the client screen .pls suggest 如果有人可以建议使用Activx插件来获取打印屏幕或捕获客户端屏幕。请建议

EDITED I tried something like savefrom URL ,but i dont want to save the whole page ,only div. 编辑我尝试了类似savefrom URL的操作,但是我不想保存整个页面,只能保存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);

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. 我将更专注于提取/刮除div位置(用户拖动的位置)并将其传递给服务器,以便可以对其进行处理。 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". 处理将包括创建一个Bitmap ,将ESRI地图作为背景(具有任何适用的偏移),然后在该基础之上叠加“可移动/拖动” DIV [更具体地说,是与它们相关的图像] ,然后将整个条目导出为“屏幕截图”。

You should be looking more at reproducing the outcome instead of capturing it (at least if this is planned for a web-client implementation). 您应该更多地关注于重现结果而不是捕获结果(至少在计划用于Web客户端实现的情况下)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM