How to C#: Tiff
Using Tiff SDK for C#.NET
Quick to Start
  |  
Home ›› XDoc.Tiff ›› C# Tiff: Quick to Start

C# TIFF - Get Started with TIFF in C#.NET


Provide Free C# Demo Code to Start with Tiff Imaging in .NET Application




C#.NET TIFF Imaging SDK Overview



With the purpose of helping C# developers to decode, read and process TIFF image file in an easier way, RasterEdge designs this C#.NET TIFF imaging SDK, XDoc.Tiff for .NET, which offers advanced and smart APIs for programmers to create, view, manipulate, annotate & save single-page or multi-page TIFF file in C#.NET class applications. In this article, we will give you detailed C# programming example on how to get started with TIFF file imaging, by taking Tiff file appending as an example.


Related .net document control helps:
asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net sharepoint pdf editor: ASP.NET SharePoint PDF Editor Control: view, edit, annotate, redact PDF document in SharePoint sites
asp.net iis document viewer: C# HTML5 Viewer: Deployment on IIS
asp.net edit pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net open pdf password: ASP.NET PDF Password Edit Control: online add, remove, update PDF file open password using C#
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: view, annotate, redact Adobe PDF files online in ASP.NET
asp.net powerpoint document viewer: ASP.NET PowerPoint Document Viewer Control: view pptx files online in C# using ASP.NET


From this C#.NET TIFF imaging tutorial page, you will get guidance on how to get started with TIFF image file from following aspects.


How to create a Console application with C# programming language


How to start to test XDoc.Tiff for .NET file appending function in C# class




Start to Create a Console Application in C#



Start Visual Studio 2005 or any later version;


On VS toolbar, click "New";


In the pop-up window, select "C# Language" and "Console Application" to create a new sample project.




Start to Test Tiff Imaging Function in C#



Instead of creating a new C# project, you may also open your own project. And then, follow steps below to test Tiff file appending feature of XDoc.Tiff for .NET.


Add the following DLL libraries as your C# project references.


  RasterEdge.Imaging.Raster.dll


  RasterEdge.Imaging.Raster.Core.dll


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.TIFF.dll



Use corresponding namespaces:


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.TIFF;


Use C# demo code below to append Tiff image files in your C# class application.




// Load Tiff images from files.
            TIFFDocument doc1 = new TIFFDocument(@"C:\demo1.tif");
            TIFFDocument doc2 = new TIFFDocument(@"C:\demo2.tif");
            if (null == doc1 || null == doc2)
                throw new Exception("Fail to load TIFF Document, pls check file path or others.");

            // Add and append all pages of doc2 to the end of doc1.
            doc1.AppendDocument(doc2);
            doc1.Save(@"C:\append.tif");



public TIFFDocument(string fileName)

Description:
Create TIFF Document object from file path.

Parameters:
public override int AppendDocument(BaseDocument appendDoc)

Description:
Append new TIFF file to the original one.

Parameters:
public override void Save(string filePath)

Description:
Save TIFF document object to the given file path.

Parameters: