Guide for C#
Core Document Formats
Additional Features

C# TIFF - TIFF Drawing in C#.NET

C# Code to Draw Text & Graphics on TIFF Document Page

Visual C#
Home > .NET Imaging SDK > C# > TIFF Drawing

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

C#.NET TIFF Drawing Overview
RasterEdge C#.NET TIFF Imaging controls provide strong & powerful TIFF drawing & editing functions. It allows C# developers to write text & draw graphics on TIFF image file directly and simply in C#.NET class application.
Related .net document control helps:
c# asp.net mvc document viewer: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
asp.net view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net document viewer example: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
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 mvc image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
RasterEdge C#.NET TIFF Imaging controls are standard-based TIFF drawing and processing toolkits which enable developers and end users to quickly and easily retrieve, view, draw, annotate, print and scan TIFF document pages; moreover, by using RasterEdge TIFF Barcode Generator Add-on, users also can read and write variable 1D and 2D barcodes on TIFF document.
RasterEdge C#.NET Imaging SDK provides powerful and smart imaging toolkits that deliver high-speed and high-performance imaging capabilities which are ready to integrate with document management systems. With RasterEdge C#.NET Imaging SDK, developers and end-users are able to build TIFF image and document viewing, processing, saving and printing functions into your Visual C#.NET applications. We provide the proven and reliable C#.NET imaging technology backed by comprehensive support programs.
This C#.NET TIFF text & graphics drawing tutorial page is divided into several parts:
  • C#.NET TIFF drawing benefit list
  • C#.NET TIFF Imaging SDK technology & running requirements
  • C# TIFF drawing - draw text on TIFF image
  • C# TIFF drawing - draw graphics on TIFF image
  • TIFF drawing in other .NET projects
TIFF Drawing Benefit List in C#.NET
  • Completely integrate TIFF Imaging DLL with RasterEdge .NET Imaging SDK
  • Full managed C# class to draw text on certain TIFF document page
  • Easy-to-use solutions for drawing graphics on TIFF document page by using C# demo codes
  • Mature TIFF drawing APIs to enhance productivity and increases efficiency
  • Other TIFF imaging features and functions are provided, including TIFF viewing, conversion, manipulation, annotation, printing and saving
C# TIFF Drawing Project Technology & Requirement
  • 100% programmed in C#.NET
  • Support .NET Framework 2.0, 3.0, 3.5 and later versions
  • Support Visual Studio C#.NET 2005 and greater versions
  • Royalty free redistribution
C# Code to Draw Text & Graphics on TIFF
RasterEdge provides step-by-step guide on how to draw and write text & graphics on TIFF document page in C#.NET project. Our testing environment are .NET 2.0 and Visual Studio 2005, and the later versions are certainly supported.

How to Create a C#.NET Application

Users can follow below guide tips to create a correct C#.NET project in Visual Studio.
  1. Open Visual Studio 2005 or any greater version;
  2. Create a C#.NET Windows application;
  3. Copy your RasterEdge license text to the created C# Windows application;
  4. Add RasterEdge .NET Imaging DLLs to C#.NET project from RasteEdge references menu;
    • RasterEdge.Imaging.Basic.dll
    • RasterEdge.Imaging.TIFF.dll
  5. Use following using statements:
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Basic;
using RasterEdge.Imaging.TIFF;

C# Demo Code to Draw Text on TIFF Image

RasterEdge .NET TIFF Imaging toolkit offers imaging developers with a variety of TIFF document processing functions for TIFF enhancement. Using the sample C# code below, you can write any text at any location of TIFF document page in C#.NET class application.
public static string FolderName = "c:/";

private void button1_Click(object sender, EventArgs e)
{

RasterEdgeImaging Rectangle = new RasterEdgeImaging();

{
string fileName = FolderName + "Sample.tif";

REDocument doc = REFile.OpenDocumentFile(fileName, new TIFDecoder());//use TIFDecoder open a tif file
BasePage aPage = doc.GetPage(0);//get page from REDocument

REImage img = (REImage)aPage.ToImage();//translate page to image
Graphic Text = Graphics.FromImage(LoadImage);
Font DrawFont = new Font("Arial", 16, FontStyle.Regular);
SolidBrush DrawBrush = new SolidBrush(Color.Red);
PointF DrawPoint = new PointF(10.0F, 30.0F);
}
Text.TextDrawing = ("rasteredge.com", DrawFont, DrawBrush, DrawPoint);

Text.Save();
REFile.SaveDocumentFile(doc, fileName, new TIFEncoder());
}

C# Demo Code to Draw Graphics on TIFF Image

Except for drawing text on TIFF document page, RasterEdge .NET TIFF Imaging controls also allow C#.NET developers to draw desired free-hand graphics on TIFF file using C# code. Here we provide compelte sample C# code for drawing rectangle graphics on certain TIFF document page.
private void button1_Click(object sender, EventArgs e)
{

RasterEdgeImaging Rectangle = new RasterEdgeImaging();

{
string fileName = FolderName + "Sample.tif";

REDocument doc = REFile.OpenDocumentFile(fileName, new TIFDecoder());//use TIFDecoder open a tif file
BasePage aPage = doc.GetPage(0);//get page from REDocument

REImage img = (REImage)aPage.ToImage();//translate page to image
Graphic Rectangle = Graphics.FromImage(img);
Pen myPen = new Pen(System.Drawing.Color.Red, 5);
Rectangle myRectangle = new Rectangle(20, 20, 250, 200);
}
Rectangle.RectangleDrawing = (mypen, myrectangle);
Rectangle.Save();
REFile.SaveDocumentFile(doc, fileName, new TIFEncoder());
}
TIFF Drawing in Other .NET Projects
Users can find TIFF and other image & document processing tutorials in any other supported .NET class application. Besides the spoken-highly of comprehensive .NET Imaging SDK, RasterEdge is also known for its remarkable human service.
C# Imaging - Other Tutorials to Process TIFF Using C#


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. 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-2017 Raster Edge.com