To convert HTML to image in C#(C-sharp), the easiest way is to use our HTML converter SDK - ACA WebThumb ActiveX.
With a few function calls in Visual C#(C-sharp), it takes the snapshots of given URLs as JPG, GIF, PNG, BMP, TIFF, WMF and EMF image, it helps you convert the HTML web page to images in batch, capture full length website screenshots, generate thumbnail image previews of web pages.
Free Trial ACA WebThumb ActiveX Now
An example for C#:
// C# - Convert HTML to Image // Set the image filename. string t_strSaveFolder = Server.MapPath("./"); string t_strLargeImage = t_strSaveFolder + "\\" + "main-thumb.large.png"; string t_strSmallImage = t_strSaveFolder + "\\" + "main-thumb.small.png"; // Create instance ThumbMakerClass t_xThumbMaker = new ACAWebThumbLib.ThumbMakerClass(); // Start convert web page http://www.acasystems.com to image t_xThumbMaker.SetURL("http://www.acasystems.com"); t_xThumbMaker.StartSnap(); // Save the image with full size in C# t_xThumbMaker.SaveImage(t_strLargeImage); // Save the image with 320x240 in C# t_xThumbMaker.SetThumbSize(320, 240, 0); t_xThumbMaker.SaveImage(t_strSmallImage);
Free Trial ACA WebThumb ActiveX Now