Home >
.NET Imaging SDK >
VB.NET >
Create TIFF Windows Viewer
"This online guide content is
Out Dated!
Please get the latest
XDoc.Tiff C# Developer Guide here.
"
Do you have a multi-page TIFF on your computer and wonder what program can open it?
vb.net insert image into pdf,
add watermark to pdf c#,
vb.net pdf generator,
vb.net itextsharp pdfreader,
how to generate password protected pdf files in c#,
pdf417 reader c#.
Have you ever tried to open the TIFF by double clicking but were told that no application in your system can open it?
Related .net document control helps:
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net pdf viewer using c#: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net view text file in browser: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net mvc word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net edit pdf page using c#:
ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
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 using c#:
ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
RasterEdge.com provides you with .NET Image SDK, in which there is a TIFF processing library for creating Windows based TIFF document viewer.
convert word to pdf using pdfsharp c#,
how to print pdf directly to printer in c#,
c# convert png to pdf itextsharp,
print pdf vb.net without acrobat,
vb.net extract pdf text,
itextsharp remove text from pdf c#,
vb.net convert tiff to pdf.
This TIFF Windows Viewer includes functions for dynamically loading & opening TIFF, viewing & editing a TIFF document, as well as instant zooming in & out, annotating and redacting for multi-page TIFF file.
From this tutorial, developers will learn how to create a Windows TIFF Viewer using Visual Basic .NET programming language. Listed below is the layout of this guiding page:
- How to create a VB.NET Windows viewer for a multiple-page TIFF document
- Functions for Visual Basic .NET TIFF file Windows viewer
- More tutorials for VB.NET image and document processing
Below are some more TIFF document user manuals that might be useful for you:
How to Create a VB.NET TIFF Windows Viewer
Before using VB sample codings below, you need to make sure that you have installed the .NET Framework 2.0 or later version, and the Microsoft Visual Studio 2005 or above, as this VB.NET TIFF windows viewer library SDK is built for .NET development environment.
When the above two requirements are met, you can now download the RasterEdge .NET image SDK to get the corresponding library for the Windows Viewer. Note that you need to activate a license to validate the library first and then add it to your VB.NET project reference.
Now you can copy the following sample codes to your VS windows application coding page for a testing. Only some of the PDF functions are displayed in the demo. If you need more demonstration, you can navigate to related VB.NET guiding page for more details.
Imports System.IO
Imports System.Drawing.Printing
Imports RasterEdge.Imaging
Imports System.Windows
Imports RasterEdge.Imaging.WindowsControl
Imports RasterEdge.Imaging.Tiff.WindowsControl
Namespace MultiPageTiff
Public Class TiffViewer
Public Function GetNumberOfPages(FileName As String) As Integer
Dim image As Image = Image.FromFile(FileName)
Dim ID As Guid = image.FrameDimensionsList(0)
Dim fd As New FrameDimension(ID)
Return image.GetFrameCount(fd)
End Function
Public Function GetSpecificPage(FileName As String, iPageNumber As Integer) As Image
Dim image As Image = Image.FromFile(FileName)
Dim ms As MemoryStream Is Nothing
Dim returnImage As Image = Image.FromFile(FileName)
Try
ms = New MemoryStream()
Dim ID As Guid = image.FrameDimensionsList(0)
Dim fd As New FrameDimension(ID)
image.SelectActiveFrame(fd, iPageNumber)
image.Save(ms, ImageFormat.Bmp)
returnImage = Image.FromStream(ms)
Return returnImage
Catch ex As Exception
MessageBox.Show(ex.Message.ToString(), "Error")
Return Nothing
Finally
ms.Close()
End Try
End Function
Public Sub SetTIFFCompression(FileName As String, QualityPercentage As Double)
Dim bm As Bitmap = CType(Image.FromFile(FileName), Bitmap)
Dim codecs As ImageCodecInfo() = ImageCodecInfo.GetImageEncoders()
Dim ici As ImageCodecInfo Is Nothing
For Each codec As ImageCodecInfo In codecs
If codec.MimeType = "image/tiff" Then
ici = codec
End If
Next
Dim ep As New EncoderParameters()
ep.Param(0) = New EncoderParameter(System.Drawing.Imaging.Encoder.Quality, CType(QualityPercentage, Long))
Dim newFileName As String = FileName.ToLower().Replace(".tif", "_Quality_" + QualityPercentage + "%.tif")
bm.Save(newFileName, ici, ep)
End Sub
End Class
End Namespace
Functions for VB.NET TIFF Windows Viewer
To begin with, this VB.NET project TIFF document Windows Viewer can provides you basic TIFF document processing in VB.NET, such as importing & loading a TIFF file from your local disk, opening and displaying a TIFF file, printing it, and saving it to local file in your computer.
We also provide you with a variety of TIFF document page viewing options and functions. Users can jump to the previous or next page at any time, skip to any page for viewing, zoom in and zoom out the current page as you wish, and search within the TIFF document to find target content.
Moreover, this powerful VB.NET TIFF File Windows Viewer is developed with flexible options and useful functionality for TIFF file processing. With Visual Basic .NET programming codes, developers can find it quite simple to create a new page in a TIFF file, and rotate any page in any direction as you want (currently supporting 0 to 360 degrees).
If you want to add some annotations on the TIFF document, the Windows TIFF viewer for VB.NET application can also help you. Currently we support adding text, ellipse, rectangle, line, freehand and other annotations on a TIFF file. In addition, you can also add watermark on a TIFF file. All the annotations can be freely edited and positioned with VB.NET codings.
More Imaging Tutorials!
Recommend this to Google+