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

VB.NET TIFF - Convert TIFF to PNG Using VB

VB.NET Imaging TIFF Converting Library to Convert TIFF to PNG

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

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

When you are applying RasterEdge VB.NET TIFF converting SDK to render and convert TIFF file to raster PNG image, you may concern following aspects of this image conversion tool:
Related .net document control helps:
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
c# asp.net mvc document viewer: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
c# asp.net tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
c# asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net sharepoint document viewer open source: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net document viewer open source: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
  • What can TIFF to PNG converter do within VB.NET class?
  • What are the developing requirements and operating demands of VB.NET TIFF to PNG converting library?
  • How to render and convert TIFF to PNG with methods in VB.NET application?
  • How to transform and convert TIFF document to PNG image, can you offer some VB.NET guide codes?
  • Can you provide more TIFF converting functions which can be easily integrated within VB.NET class?
Converter Description
RaterEdge .NET TIFF converting SDK is powerful enough to enable developers and end users to convert and transform single or multiple TIFF images to PNG formats after you have accurately integrated this TIFF converter into your VB.NET Windows desktop and ASP.NET web applications. With our high speed and high performance TIFF to PNG converting tool, users are able to convert the loaded TIFF file pages into multiple and smaller PNG images across your single-threaded or multi-threaded VB.NET application.
Operating Demands
If you are not clear about the developing environments that are compatible with this VB.NET TIFF converting library, please have a look at following list.
  • Support Windows 32 bit and 64 bit image conversion operating systems
  • Support Visual Studio 2005, 2008, 2010 & 2012
  • Support Microsoft .NET Framework 2.0, 3.0, 3.5, 4.0 & 4.5
  • VB.NET TIFF Converting SDK runtime royalty free license
Sample APIs
What demonstrated in this part are the sample APIs and methods for TIFF to PNG conversion within VB.NET application.

TIFF Rendering

Users who are going to convert TIFF file to PNG or any other image or document format need to render and transform the whole embedded TIFF document or certain input page to REImage object first by using following demo methods, which are compatible with any .NET Framework developing environment, including VB.NET (illustrated in this page), Visual C#.NET, ASP.NET and .NET Windows Forms.
'APIs for rendering TIFF to get a REImage collection
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

Image Converting

Please directly use API below to convert the rendered TIFF image to any supportable image or document file with VB.NET programming code, such as Png, Jpeg, Bmp, Gif, Svg and Pdf.
' API for converting TIFF file to PNG
Private Sub Convert(s As Stream, format As ImageFormat) Implements REImage.Convert
End Sub
Demo Code
Whether you are a professional VB programmer or an amateur, following VB sample code will fit your needs best for its simplicity and high flexibility.
As you can see, besides mature TIFF-to-PNG image converting methods, we also provide the robust image file page handling solutions like "doc.GetPage" to help users locate the target TIFF file page(s) that need(s) to be converted. If you want to find the overview on TIFF converting functions in VB.NET, please link to VB.NET imaging application for TIFF converting.
''' <summary>
''' Convert TIFF to REImage using TIFFDocument and TIFFPage as tools
''' </summary>
''' <param name="TiffFilePath"></param>
'''<returns></returns>
Public Function ConvertTIFFToREImage(TiffFilePath As [String]) As List(Of REImage)
Dim buffer As New List(Of REImage)()

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)
If temp IsNot Nothing Then
buffer.Add(temp)
End If
Next

Return buffer
End Function


''' <summary>
''' Convert TIFF to images of PNG format
'''</summary>
''' <param name="TiffFilePath"></param>
''' <returns></returns>
Public Function ConvertTIFFToPNG(TiffFilePath As [String]) As List(Of Stream)
' A list of stream which contains the image data of the PNG 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.Png)
buffer.Add(imageStream)

End If
Next

Return buffer
End Function
See More
Apart from TIFF to PNG converter in VB project, RasterEdge .NET TIFF converting control also allows users to transfer TIFF file into other raster and vector image forms, such as JPEG, BMP, GIF, SVG. Besides, TIFF to document formats conversion is still an easy work. Specific tutorials are listed below:

VB Class to convert TIFF to JPGE

When converting TIFF pages to JPEG images, you can also convert TIFF CMYK or RGB color space to JPEG RGB or CMYK color space with sample VB APIs.

VB Class to Convert TIFF to BMP

Our mature VB.NET TIFF converter enables users to quickly convert single or multiple loaded TIFF pages into BMP images.

VB Class to Convert TIFF to PDF

This flexible TIFF document conversion component supports converting dozens of TIFF images or documents to PDF document(s) at one time.

VB Class to Convert TIFF to GIF

Users are able to apply image to image converting solution to convert TIFF images to Gif images by using Visual Basic .NET sample code.

VB Class to Convert TIFF to REImage

This well developed .NET TIFF converting toolkit allows for TIFF conversion to other formats, but the first step should be conversion from TIFF file to RasterEdge REImage object within VB.NET imaging project.


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