How to Add Watermark in Tiff using C#

In this how-to example, we’ll walk you through steps for how to add watermark in TIFF using C#. It is very simple to insert watermark in TIFF using C# by performing few API calls.

Steps to Insert Tiff Watermark using C#

  1. Install Aspose.Imaging for .NET NuGet package
  2. Include Aspose.Imaging, Aspose.Imaging.ImageOptions and Aspose.Imaging.Brushes namespaces
  3. Use Image.Load method to load the Tiff and add Tiff watermark
  4. Instantiate Graphics, Font, SolidBrush and StringFormat classes objects to set the font, color and textual properties of watermark
  5. Using Graphics class object protect Tiff with watermark in C#
  6. Save output image with Tiff watermark

In the afore mentioned steps, we have loaded the Tiff image first in memory using Load method of Image class. Then we have specified attributes for Font, Brush and Text formatting to protect Tiff with watermark in C#. Lastly, we are saving Tiff watermark using C#.

Code to Insert Tiff Watermark using C#

Using the above example, you can easily protect Tiff with watermark in C# in your .NET projects including Windows desktop, ASP.NET web, or console applications.

 English