如何HTML块转换为图像(例如JPG)在asp.net [英] How to convert block of html to an image (e.g. jpg) in asp.net
问题描述
我想(表例如,)将HTML转换为图像并保存为.jpg文件。而且,如果该表与其他元素一起在网页中显示的,我只希望得到特定表,并将其保存为图像。
I would like to convert html (for example, a table) to an image and save it as a .jpg file. And, if that table is displayed within a web page along with other elements, I only want to get that specific table and save it as an image.
这可能使用asp.net?
Is this possible using asp.net?
感谢
推荐答案
我觉得这是一个呈现的问题,完全取决于什么样的浏览器渲染你的HTML。
I think this is a rendering issue and completely depends upon what browser rendering your HTML.
但是,这我可以让你利用的 GDI + 和 web浏览器
控制最接近HTTP ://www.$c$cproject.com/KB/graphics/html2image.aspx相对=nofollow> $ C $的CProject
But this the closest thing I could get you using GDI+
and WebBrowser
control from CodeProject.
让我知道它是否有助于你还是不行!
Let me know whether it helped you or not!
问候。
这篇关于如何HTML块转换为图像(例如JPG)在asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!