Guide for VB.NET
Core Document Formats
Tiff to GIF
Additional Features

VB.NET TIFF - How to Convert TIFF to GIF

VB.NET TIFF to GIF Image Converting/Conversion Library Control

VB.NET
Home > .NET Imaging SDK > VB.NET > Convert TIFF to GIF

"This online guide content is Out Dated!
    Please get the latest XDoc.Tiff C# Developer Guide here.
"

Do you need to convert TIFF file format (short for Tagged Image File Format) to GIF bitmap image file (short for Graphics Interchange Format) using Visual Basic .NET programming language? If yes, this VB.NET TIFF to GIF Image Converter Control SDK of RasterEdge .NET Imaging Library is your best choice for its robust and professional .NET TIFF image conversion solution which is designed to convert single-page or multi-page TIFF document file(s) to GIF image format(s) using a few lines of simple VB.NET class code.
Related .net document control helps:
asp.net pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net mvc image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
asp.net edit pdf text control: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net mvc image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
If you have any of following product questions, you are supposed to read this VB TIFF to GIF converting guide in detail.
  • Can you give a short introduction of this VB.NET TIFF to GIF converting control?
  • What libraries and references are needed if I am about to use your TIFF to GIF converter within VB.NET programming language?
  • How to render and convert TIFF file to GIF form with simple VB.NET methods?
  • Can I get some help on the VB.NET programming code for converting TIFF to GIF image?
  • Can you display some basic knowledge of TIFF and GIF files?
Product Introduction
This VB.NET TIFF to GIF converting control component offers easy to use APIs for VB.NET programmers to convert TIFF file to GIF image format preserving all the original content in both single-conversion (render a certain TIFF page to GIF image) and batch-conversion (convert multiple TIFF pages into GIF files at a time) modes.
Besides, the name and storage location of converted GIF image file can be easily defined by developers. And, if you want to do more converted GIF image format manipulations (like cropping, rotation, watermarking, etc.) in VB.NET class application, then you can use VB.NET image processing and editing SDK component.
Required Libraries
To finish the conversion from TIFF to GIF, two dlls will be used, which are RasterEdge.Imaging.Basic.dll and RasterEdge.Imaging.TIFF.dll. Here we will list the main functions of each .NET imaging conversion dll.
  • RasterEdge.Imaging.Basic.dll: offers the APIs for VB.NET programmers to open, edit and save common image and document file formats, like PNG, GIF, JPEG , BMP, PDF, TIFF, MS Word, Excel and PPT.
  • RasterEdge.Imaging.TIFF.dll: is a professional and basic image editing library which is designed to help VB.NET developers view, process, annotate, convert TIFF file as well as add and decode barcode to or from TIFF file. (For specific function, respective library should be added, like annotation library or barcoding libraries.)
Sample Methods
Please use following free online demo APIs to optionally select the entire TIFF doc or a certain TIFF page to be rendered and converted into GIF file within VB.NET Windows or web application.
''' Render TIFF document to get a REImage collection, or choose specific TIFF page to render	
Private Function GetPage(pageIdx As Integer) As BasePage Implements TIFFDocument.GetPage
End Function
Private Function toImage() As BaseImage Implements TIFFPage.toImage
End Function
Private Function toImage(width As Integer, height As Integer) As BaseImage Implements TIFFPage.toImage
End Function
Private Sub New(imagesource As List(Of REImage))
End Sub

''' Convert TIFF to GIF images using following TIFF conversion API
Private Sub Convert(s As Stream, format As ImageFormat) Implements REImage.Convert
End Sub
Demo Code
Illustrated below is the VB example code for rendering and converting TIFF to GIF file with full managed VB.NET desktop application. And please note that, if you still are interested in TIFF to raster JPEG conversion or TIFF file to PDF document transforming in VB.NET, please change the function code "ImageFormat.Gif" to "ImageFormat.Jpeg/Pdf".
Also, here is the overall information of VB.NET TIFF file converting SDK.
''' <summary>
''' Convert TIFF to images of GIF format
''' </summary>
''' <param name="TiffFilePath"></param>
''' <returns></returns>
Public Function ConvertTIFFToGIF(TiffFilePath As [String]) As List(Of Stream)
' A list of stream which contains the image data of the GIF image.
Dim buffer As New List(Of Stream)()

Dim doc As New TIFFDocument(TiffFilePath)
For i As Integer = 0 To doc.GetPageCount() - 1
Dim page As TIFFPage = DirectCast(doc.GetPage(i), TIFFPage)

Dim temp As REImage = DirectCast(page.ToImage(), REImage)
Dim imageStream As New MemoryStream()
If temp IsNot Nothing Then
temp.Convert(imageStream, ImageFormat.Gif)
buffer.Add(imageStream)

End If
Next

Return buffer
End Function
Images Knowledge
In this part, we display the basic knowledge of the two target image forms of this page: TIFF and GIF.

TIFF Image

TIFF, shorten for Tagged Image File Format, is a high quality image format using the standard LZW (Lempel Zev Welch - a simple form of file compressing) compression to shrink file size for better storage. TIFF is widely used for the popularity of scanners and faxes. A TIFF file can be in either single-page or multi-page mode.

GIF Image

GIF, known as Graphics Interchange Format, is a type of bitmap image and widely used due to the growth of the internet. It also uses the LZW lossless data compression mode (which will delete all the redundant data stored in image without impacting the image quality) to reduce the file size for easier transmitting and E-mailing.


Recommend this to Google+


RasterEdge.com is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster Edge.com