将HTML页面转换为图像 [英] Convert Html page to image

查看:100
本文介绍了将HTML页面转换为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

请任何人知道如何将html区域转换为图像吗?

Hi All,

Please any one know how to convert an html area to image ?

推荐答案

尝试此线程.
转换HTML控件(Div或表)使用C# [生成图像 [
Try this thread.
Convert a HTML Control (Div or Table) to an image using C#[^]


Generating Images[^]
[/Edit]


我发现 THIS [ THIS [ THIS [^ ]. :)

我忘了在CP中收录我们其中一篇优秀的国内文章,请参见 HERE [
I Found THIS[^] into THIS[^] Thread using THIS[^]. :)

I forgot include one of our fine domestic article in CP, See HERE[^].

Please vote and Accept Answer if it Helped.


您可以总是从屏幕上拍摄快照,但是我想您想以自动化的方式进行拍摄.您可以使用WebControl构建自己的应用程序.该应用程序访问可配置数量的URL,并在WebControl触发该事件以表明加载文档结束后,您以编程方式对WebControl占用的区域进行了截屏.

修改:
尝试使用google:将html转换为图像.这会返回很多有趣的信息
在最上面的东西,甚至有看起来像商业产品的东西都可以做这种事情.

干杯


曼弗雷德

PS:您能详细说明一下您要达到的目标吗?
You can always take a snapshot from the screen, but I guess you want to do this in an automated fashion. You could build yourself an application utilizing the WebControl. The application visits a configurable number of URLs and after the WebControl fires the event that signals the end of loading the document you programmatically take a screenshot of the area that is taken up by the WebControl.

Modification:
Try to google: convert html to image. This returns lots of interesing
stuff right on top there is even something that looks like a commercial product to do this kind of thing.

Cheers


Manfred

PS: Could you please elaborate what you''re trying to achieve with this?


这篇关于将HTML页面转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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