SyntaxFix
Write A Post
Hire A Developer
Questions
You can add reference HtmlRenderer to your project and do the following,
string htmlCode ="<p>This is a sample html.</p>"; Image image = HtmlRender.RenderToImage(htmlCode ,new Size(500,300));