Visual C#.NET: Draw Text on Image

How to draw text on image using C#.NET
Human-readable text can be easily added onto images in any formats supported by Yiigo.Image for .NET, if you used our Document Imaging products. Find more image drawing information on Yiigo.Imaging for .NET Processing Support.
Yiigo.Image for .NET Processing SDK has those following functionalities:
This document provides comprehensive Visual C#.NET samples for guiding developers to draw text on image using Yiigo.Image for .NET which also supports Tiff to text conversion in C#.NET. Find more text drawing tutorials on Draw Text in VB.NET, Web Imaging Viewer Draw Text and Draw Text in .NET Winforms.
Draw Text on Image with C#.NET Sample Code


Before drawing text on image with Yiigo.Image for .NET in Visual C#.NET, make sure that you have installed.
  • Operating systems - Windows 7, Windows Vista, and Windows XP, etc
  • Compatible with .NET framework 2.0 and above versions
  • Support Visual Studio 2005, 2010 and other .NET development environments
  • Yiigo.Image for .NET installation

Start to Draw Text on Image

  • Open and run your Microsoft Visual Studio;
  • Choose either "Visual C# Projects" in "New Project" dialog box;
  • Choose "Windows Application" in the "Templates" List and name it "YiigoImagingDrawingTextCsharp";
  • Right-click on the "References" folder, and select "Add Reference..." from the context menu in the "Solution Explorer" window;
  • In the "Add Reference" dialog box, select the ".NET" tab and browse to Yiigo.Imaging.Net.dll library;
  • Add it to your Visual C# applications;
  • Call Yiigo .NET Image Namespace & Copy those following codes:
using System.IO;
using System.Drawing.Printing;
using Yiigo.Imaging;
using Yiigo.Imaging.Processing;

YiigoImage Image = new YiigoImage();

pubic void YiigoImageProcessDrawText();
Image newImage = Image.FromFile("C:/Yiigo_example.jpg");
DrawText = "My Text";
DrawFont = new Font("Arial", 16, FontStyle.Regular);
DrawBrush = new SolidBrush(Color.Red);
Point = new point(100, 100);
pubic void YiigoImageProcessDrawText("My Text", new Font("Arial", 16, FontStyle.Regular), new Brush(Color.Red),
new point(100, 100));
Other Plugins
Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner