Home >
.NET Imaging SDK >
VB.NET >
Convert TIFF to Bitmap
"This online guide content is
Out Dated!
Please get the latest
XDoc.Tiff C# Developer Guide here.
"
When you want to render and convert Tagged Image File Format (TIFF) to Microsoft designed Bitmap format for special use on some Windows and web applications, what are you going to do with a TIFF to BMP image converter, specifically say -
RasterEdge VB.NET TIFF to BMP Converting Control?
vb.net itextsharp pdf to image,
how to print a pdf in asp.net using c#,
barcode reader in asp.net c#,
add pages to pdf c#,
c# compress tiff image,
asp.net pdf writer.
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
Questions that might be encountered when using our TIFF to BMP converter within VB.NET class are listed below:
how to edit pdf file using itextsharp in asp.net,
open word document in asp.net c#,
asp.net preview pdf,
asp.net view image,
asp.net itextsharp add image to pdf,
c# mvc website pdf file in stored in byte array display in browser,
c# asp.net pdf viewer.
- What is the designing concept of this VB.NET TIFF to BMP converting tool? And what TIFF converting functions can RasterEdge VB.NET TIFF converter provide?
- What are the accurate imaging methods for rendering and converting TIFF file to BMP image in VB.NET project?
- What are the corresponding VB demo code by using the TIFF to BMP rendering and transforming APIs?
- What are the particular requirements for using this VB.NET TIFF to BMP converting program?
Converting Tool
RasterEdge .NET Imaging SDK library provides a powerful Visual Basic .NET TIFF file converter which can enable you to efficiently convert a TIFF file (.tiff document) into BMP image/picture with high quality.
This TIFF to BMP image converter is completely written in C# language, however, it shows the great capabilities on combining with other .NET Framework developing environments, for example, Visual Basic .NET (demonstrated in this page), ASP.NET web, as well as .NET Windows Forms.
In addition to the excellent platform-friendly feature, what makes this VB.NET TIFF to BMP converter so marvelous and smart is the TIFF to BMP batch conversion mode, by using which, users are capable of converting multi-page TIFF file into BMP images at one time with the full compatible VB.NET sample methods and codes.
RasterEdge VB.NET image converter is also able to convert single-page or multiple-page TIFF doc into other image formats or documents just in the same way of TIFF to BMP transforming. Some of the related user manuals are displayed as below:
Converting APIs
Users are supposed to finish following two steps to work out TIFF to BMP image conversion within VB.NET program:
- Firstly, after users have created the required VB.NET desktop application with the "RasterEdge.Imaging.Basic.dll" & "RasterEdge.Imaging.TIFF.dll" embedded, users need to invoke and apply the APIs listed in the following first part to render the selected whole TIFF file or a certain TIFF page into RasterEdge specified REImage with the customizable image width and height;
- When it comes to the second step, users need to use the demonstrated image converting method to convert rendered REImage to BMP file as well as Gif, Png, Jpeg, Pdf, and so on so forth.
''' Firstly, render TIFF document to get a REImage collection, or choose a 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
''' Secondly, convert TIFF to BMP images using following TIFF conversion API
Private Sub Convert(s As Stream, format As ImageFormat) Implements REImage.Convert
End Sub
Converting Codes
Corresponding to above TIFF doc rendering and converting methods, following VB.NET demo code is offered to better guide users to program TIFF to BMP conversion.
''' <summary>
''' Convert TIFF to images of BMP format
''' </summary>
''' <param name="TiffFilePath"></param>
''' <returns></returns>
Public Function ConvertTIFFToBMP(TiffFilePath As [String]) As List(Of Stream)
' a list of stream which contains the image data of the BMP 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.Bitmap)
buffer.Add(imageStream)
End If
Next
Return buffer
End Function
Notice: this VB demo code is for TIFF to BMP image conversion, if you want to change TIFF file to any other image or document form like mentioned before, such as Png, you just need to adjust the code "ImageFormat.Bitmap" to "ImageFormat.Png".
Conversion Requirements
Listed below are the programming requirements for converting TIFF file to BMP format with RasterEdge Visual Basic .NET TIFF converter. Please make sure that you have fulfilled all these requirements so that you can convert TIFF to BMP image format in VB.NET program without any error.
- Support Microsoft Windows XP, Windows Server 2003, Windows 7/8, .etc
- Support Microsoft .NET Framework 2.0, 3.0. 3.5, 4.0 and 4.5
- Support Microsoft Visual Studio 2005, 2008, 2010 and 2012
More Tutorials!
Recommend this to Google+