How to Convert HTML to TIFF in VB.Net ?

Do you ever want to take a screen shot of a web page in your .net web or desktop application? HTML to Image for .net DLL can capture whole web page as JPG, PNG, BMP, GIF and TIF image format on the fly. Add �HTML to Image� or �HTML to TIFF� feature to your application now. Our .NET library can download and parse website pages and save screenshot of entire page or thumbnail image of a specified size and can save it to local or in memory.

Download HTML to Image for .NET and install it on your computer, with a few function calls, it takes the snapshots of given URLs as JPG, GIF, PNG, BMP and TIFF image, it helps you convert the web page to images in batch, capture full length website screenshots, generate thumbnail image previews of web pages.


Following code sample shows you how to convert your HTML web page to TIF image format in VB and C# .NET. In CaptureWebpage method you can pass your web page URL or your local HTML file path. If you want to convert your HTML code to image, you can use CaptureHTML method and pass your HTML code in this method. More help and samples are available for HTML to Image for .NET library.

C# .Net Code.

    
WebsitesScreenshot.WebsitesScreenshot  _Obj;
_Obj = new WebsitesScreenshot.WebsitesScreenshot ();
WebsitesScreenshot.WebsitesScreenshot.Result _Result;
_Result = _Obj.CaptureWebpage("http://www.google.com");
if (_Result == WebsitesScreenshot.WebsitesScreenshot.Result.Captured)
{
	_Obj.ImageFormat = WebsitesScreenshot.
		WebsitesScreenshot.ImageFormats.TIF;
	_Obj.SaveImage ("c:\\google.tif");
}            
_Obj.Dispose();

VB .Net code.

    
Dim _Obj As New WebsitesScreenshot.WebsitesScreenshot
Dim _Result As WebsitesScreenshot.WebsitesScreenshot.Result
With _Obj
	_Result = .CaptureWebpage("http://www.google.com")
	If _Result = WebsitesScreenshot.WebsitesScreenshot. _
				Result.Captured Then
		.ImageFormat = WebsitesScreenshot. _
				WebsitesScreenshot.ImageFormats.TIF
		.SaveImage("c:\google.tif")
	End If
End With
_Obj.Dispose()