如何在不使用Jquery Canvas方法和第三方dll的情况下将Div Html内容转换为图像 [英] How to convert Div Html content to image without using Jquery Canvas method and third party dll
本文介绍了如何在不使用Jquery Canvas方法和第三方dll的情况下将Div Html内容转换为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在不使用Jquery Canvas方法或第三方dll的情况下将Div Html内容转换为图像
How to convert Div Html content to image without using Jquery Canvas method or third party dll
推荐答案
所以你试图获得一个屏幕截图如何特定的div渲染,没有第三方工具?我唯一能想到的是将div加载到自定义System.Windows.Forms.WebBrowser
控件并覆盖OnPaint
获取位图图像。
So you are trying to sort of get a screen shot of how a particular div renders, and without third party tools? The only thing I can think of is load the div into a customSystem.Windows.Forms.WebBrowser
control and overrideOnPaint
to get a bitmap image.
这篇关于如何在不使用Jquery Canvas方法和第三方dll的情况下将Div Html内容转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文