Guide for VB.NET
Core Document Formats
Additional Features

VB.NET TIFF - Scan Document to TIFF File in VB

VB.NET Code for Scanning a Multi-page Document into TIFF File

VB.NET
Home > .NET Imaging SDK > VB.NET > Scan Document to TIFF

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

VB.NET Document Scanning into TIFF File
Once a document is scanned by a physical scanner device, users need to decide how to save this scanned document file. In general, people often generate those scanned documents in TIFF or PDF file format. In this article, we mainly talk about how to get document from an image scanning & acquisition application and save it into a TIFF file in VB.NET class application.
Related .net document control helps:
asp.net pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net word document viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net document viewer: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net edit pdf text: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
With the purpose to help you know more about the process of scanning source document into TIFF file using VB.NET code, we divide this online tutorial page into following several aspects.
  • Feature list of this VB.NET TIFF document scanning control SDK
  • VB.NET method to generate scanned document file in TIFF format
  • VB.NET demo code for saving scanned document into TIFF file
  • Frequently asked questions on VB.NET imaging SDK for scanning document to TIFF
VB.NET Control to Scan Document to TIFF
In this section, we will list some basic and unique features of this VB.NET TIFF scanning control add-on.
  • Professional .NET solution that is designed to help developers store scanned document file into a TIFF file
  • Able to save scanned document into one TIFF file in VB.NET image application
  • Allow VB.NET developers to save a scanned multi-page document to several TIFF file by VB.NET code
  • Developer can customize the settings of TIFF file that is used to store scanned document file
  • Managed .NET solution that can be used to scan document to TIFF file using VB.NET programming code
VB.NET Method to Scan File to TIFF
Following is the method that RasterEdge has used to scan source document file to TIFF format. When you are scanning document to TIFF file using this VB.NET TIFF scanner SDK, you are also allowed to determine the image type, TIFF width & height, TIFF generating orientation, TIFF file resolution and the brightness & contrast of TIFF file.
Public Sub TiffProcessorMerge(TIFFInputFile1 As String, TIFFInputFile2 As String, TIFFOutputFile As String)
End Sub
VB.NET Demo Code for Scanning File to TIFF
In this section, we offer you a VB.NET code demo which can be used to save a scanned multi-page document to separate TIFF files. That is to say, using following VB.NET sample code, you can save each page of scanned multi-page document to an individual TIFF file. One thing that should be noted here is that it is also possible for developers to save scanned multi-page document to a multi-page TIFF file using this VB.NET TIFF scanning assembly add-on.
Here we attach a link which can lead you to find a detailed Visual C# .NET programming example on how to scan a multi-page document into TIFF file format using C#.NET code.
Imports System.IO
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing
Imports RasterEdge.Imaging.MultipageTiff

Dim TIFF As New RasterEdgeImaging()
Public Class AcquisitionClass
Private AcquireCanceled As Boolean
Private Acquisition As New Acquisition(Me)
Public Sub Scan()
AcquireCanceled = False
Acquisition.AcquireCanceled += New EventHandler(OnAcquireCanceled)
Acquisition.AcquireFinished += New EventHandler(OnAcquireFinished)
Acquisition.ImageAcquired += New ImageAcquiredEventHandler(OnImageAcquired)
Dim activeDevice As Device = Acquisition.ShowSelectSource()
activeDevice.Acquire()
End Sub


Private Sub OnImageAcquired(sender As Object, e As AcquireEventArgs)
If e.Image IsNot Nothing Then
Dim enc As New TiffEncoder(TiffCompression.[Default], True)
Dim fs As New FileStream("1.tif", FileMode.OpenOrCreate, FileAccess.ReadWrite)
enc.Save(fs, AtalaImage.FromBitmap(e.Image), Nothing)
fs.Close()
End If
End Sub


Private Sub OnAcquireCanceled(sender As Object, e As EventArgs)
AcquireCanceled = True
End Sub


Private Sub OnAcquireFinished(sender As Object, e As EventArgs)
If AcquireCanceled Then
Return
End If
Dim col As New TiffImageCollection()
Dim dec As New TiffDecoder()
Dim fs As New FileStream("1.tif", FileMode.Open, FileAccess.Read)
Dim frameCount As Integer = dec.GetFrameCount(fs)
fs.Close()
Dim i As Integer = 0
While i < frameCount
col.Add(New TiffImage("1.tif", i, TiffCompressionType.Auto))
System.Math.Max(System.Threading.Interlocked.Increment(i),i - 1)
End While

Dim outStream As New FileStream("1.tiff", FileMode.OpenOrCreate, FileAccess.ReadWrite)
Dim enc As New TiffEncoder()
enc.Save(outStream, col, Nothing)
End Sub

End Class
FAQs on VB Document Scanning to TIFF File
Q 1: Can I view generated TIFF file after I scan source document to TIFF using this VB.NET TIFF scanning SDK?
A 1: Sorry, this VB.NET TIFF scanning SDK only allows developers to save scanned document file into TIFF file format. But coupled with this .NET document image web viewer SDK, this VB.NET TIFF scanning add-on can easily help developers to view & display generated TIFF file using VB.NET code.

Q 2: After I scanned the source document file and saved it into a TIFF file, can I use this VB.NET TIFF scanner control add-on to process created TIFF file in .NET Framework application?
A 2: Yes, this VB.NET TIFF scanner control add-on contains rich imaging APIs which developers can use to perform some image effects within TIFF files, like cropping, rotation and antique effect adding.
After you scanned document to TIFF file, do you have the need to draw some annotations on generated TIFF file? If yes, please integrate VB.NET TIFF annotation control add-on.
More Tutorials!
Find more user guides with RasteEdge .NET Image SDK using VB.NET sample codings!


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. pdf add asp.net control text web web browser, pdf .net form free image tiff web, pdf asp.net control using viewer, pdf component convert page tiff, pdf c# document free library, pdf all file open using c#. 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-2021 Raster Edge.com