Convert a HTML Control (Div or Table) to an image using C#

后端 未结 6 1079
滥情空心
滥情空心 2020-12-14 03:52

Is it possible to convert a Html Control to an image in C#?

Is there any C# method where I can pass the Html Control object and return an image of that html control?

6条回答
  •  萌比男神i
    2020-12-14 04:29

    You need to create a separate page which is to be converted into image and call it in iframe. Then Try following:
    http://articles.sitepoint.com/article/generating-asp-net-images-fly
    OR
    http://www.guangmingsoft.net/wordpress/convert-html-to-image-without-temporary-files-in-c/

提交回复
热议问题