How to C#: Tiff
Using Tiff SDK for C#.NET
Tiff Annotation
  |  
Home ›› XDoc.Tiff ›› C# Tiff: Annotate Tiff

C# TIFF - TIFF Annotation in C#.NET


How to Create & Add Annotations to TIFF File Using C#.NET Code




C#.NET Annotation on TIFF Image Overview



To help you add some comments, provide some additional information or draw certain markup on source Tiff file, we design a C#.NET Tiff reading & annotating control DLL, RasterEdge.XDoc.Tiff.dll. This C#.NET Tiff annotation control is able to add and modify Tiff document annotations in an extremely easy way. The main supported Tiff annotation types include line, lines, free hand, rectangle, text, arrow, ellipse, highlight, polygon, hotspot, rubber stamp, callout, and embedded image.


Related .net document control helps:
asp.net word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net document viewer c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET




C#.NET TIFF Annotating SDK Features



Professional C#.NET Tiff annotating solution that is compatible with .NET Framework 2.0 and later versions


Support adding over 10 annotation types to source Tiff image file using C#.NET code


Created C#.NET annotations can be burnt on the desired location of Tiff image file


Properties of Tiff annotation can be easily customized using C# code, like size and color


The annotation that is created on Tiff image file can be processed as an independent image object


Different annotations can be added to one Tiff page in C#.NET imaging application




C#: DLLs for TIFF Annoation



Add references;


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.XDoc.Processing.dll


  RasterEdge.Imaging.Raster.dll


  RasterEdge.Imaging.Raster.Core.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.TIFF.dll


  RasterEdge.Imaging.Annotation.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.Imaging.Annotation;


  using RasterEdge.XDoc.TIFF;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:


If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.


If using x86, the platform target should be x86.




Use C#.NET Code to Create & Burn Annotations on TIFF



RasterEdge C#.NET Tiff Imaging Annotator Control supports annotating source Tiff page with over 10 commonly used annotation types, including both graphics and text. In order to help you have a better grasp of how to use RasterEdge C#.NET Tiff annotating control, we here specifically provide you with C#.NET demo code for adding and burning a text annotation object on the first page of Tiff image file.




//open a TIFF file
TIFFDocument tifDoc = new TIFFDocument(@"F:\input.tif");
TIFFPage page = (TIFFPage)tifDoc.GetPage(0);
//create a text annotation
TextAnnotation annotation = AnnotationGenerator.CreateTextAnnotation(10, 100F, 200F, 100F, "www.RasterEdge.com", new System.Drawing.Font("Arial", 12F));
//add it on the page
page.AddAnnotation(annotation);
tifDoc.Save(@"F:\output.tif");



public override void AddAnnotation(AnnotationHandler annoHandler)

Description:
Add annotation on the page.

Parameters:
public void AddAnnotation(AnnotationHandler annoHandler, float zoomValue)

Description:
Add annotation on the page.

Parameters:
public override void AddImage(BaseImage image, PointF point)

Description:
Add an image on the page with specified location.

Parameters:
Table-1-1: