如何拍摄客户区的快照/打印屏幕并保存为数据库中的图像? [英] How to take snap shot /print screen of client area and save as image in database?

查看:96
本文介绍了如何拍摄客户区的快照/打印屏幕并保存为数据库中的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前已经提出过这个问题,但现在已经用更复杂的方式。我在过去两个月里一直在努力,结果为零。
所有我需要的是。我允许客户端通过将图像放在背景为esri Map的div上来创建图表。当它们保存时,整个div的快照必须保存为数据库中的图像。

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.

如果有人可以建议使用Activx插件来拍摄打印屏幕或捕获客户端屏幕.pls建议

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

EDITED
我尝试了一些像savefrom URL,但我不想保存整个页面,只有div。

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();

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


推荐答案

我会更专注于提取/位置(用户的拖动)并将它们传递给服务器,以便处理。处理过程包括创建一个位图,将ESRI地图作为背景(使用任何可用的偏移量),然后覆盖可移动/拖动的DIV [更具体地说,然后将整个条目作为屏幕截图导出。

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

您应该更注重重现结果捕获它(至少如果这是为web客户端实现计划)。

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

这篇关于如何拍摄客户区的快照/打印屏幕并保存为数据库中的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆