如何在不使用Jquery Canvas方法和第三方dll的情况下将Div Html内容转换为图像 [英] How to convert Div Html content to image without using Jquery Canvas method and third party dll

查看:75
本文介绍了如何在不使用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 custom System.Windows.Forms.WebBrowser control and override OnPaint to get a bitmap image.


这篇关于如何在不使用Jquery Canvas方法和第三方dll的情况下将Div Html内容转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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