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#
- Install Aspose.Imaging for .NET NuGet package
- Include Aspose.Imaging, Aspose.Imaging.ImageOptions and Aspose.Imaging.Brushes namespaces
- Use Image.Load method to load the Tiff and add Tiff watermark
- Instantiate Graphics, Font, SolidBrush and StringFormat classes objects to set the font, color and textual properties of watermark
- Using Graphics class object protect Tiff with watermark in C#
- 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.