Skip to main content

Posts

Showing posts from July, 2015

How to Convert HTML To Image using C#

In C# convertion of HTML tag has been converted as a Image. we can achieve this as below: //Method Call Parameter Source HTML String CreateImage(source, Width, Height);  private void CreateImage(string source, int Width, int Height) {       var th = new Thread(() =>             {                 WebBrowser webBrowser = new WebBrowser();                 webBrowser.ScrollBarsEnabled = false;                 webBrowser.Width = Width;                 webBrowser.Height = Height;                 webBrowser.DocumentCompleted +=CreateImage_HtmlData;                 webBrowser.DocumentText = source;                 Application.Run();   ...