ByteScout Watermarking SDK - C# - Add Stamp to Image - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Watermarking SDK – C# – Add Stamp to Image

  • Home
  • /
  • Articles
  • /
  • ByteScout Watermarking SDK – C# – Add Stamp to Image

How to add stamp to image for stamps in C# using ByteScout Watermarking SDK

See how to add stamp to image to have stamps in C#

Today we will explain the steps and algorithm of how to add stamp to image and how to make it work in your application. ByteScout Watermarking SDK was made to help with stamps in C#. ByteScout Watermarking SDK is the software development kit that helps to quickly implement adding of watermarks on top of PNG, JPG, BMP images as well as on multipaged TIFF files. You may select ready to use presets or create your own preset with semitransparent logo images, text lines with adjustable font size, family, color, rotation.

Fast application programming interfaces of ByteScout Watermarking SDK for C# plus the instruction and the code below will help to learn how to add stamp to image. This C# sample code should be copied and pasted into your project. After doing this just compile your project and click Run. Tutorials are available along with installed ByteScout Watermarking SDK if you’d like to dive deeper into the topic and the details of the API.

ByteScout free trial version is available for FREE download from our website. Programming tutorials along with source code samples are included.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System; using System.Diagnostics; using System.Drawing; using System.Collections.Generic; using Bytescout.Watermarking; using Bytescout.Watermarking.Presets; namespace Sample { class Program { static void Main(string[] args) { // Create Watermarker instance Watermarker waterMarker = new Watermarker(); // Initialize library waterMarker.InitLibrary("demo", "demo"); // Set input file name string inputFilePath = "my_sample_image.jpg"; foreach (string stampType in Stamp.PresetImages) { // Set output file title string outputFilePath = "my_sample_output_" + stampType + ".jpg"; // Add image to apply watermarks to waterMarker.AddInputFile(inputFilePath, outputFilePath); // Set output directory waterMarker.OutputOptions.OutputDirectory = "."; // Create new watermark Stamp preset = new Stamp(); // Set stamp type preset.ImageFile = stampType; // Add watermark to watermarker waterMarker.AddWatermark(preset); // Apply watermarks waterMarker.Execute(); // Clear all settings waterMarker.Clear(); } } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Watermarking SDK Home Page

Explore ByteScout Watermarking SDK Documentation

Explore Samples

Sign Up for ByteScout Watermarking SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Watermarking SDK Home Page

Explore ByteScout Watermarking SDK Documentation

Explore Samples

Sign Up for ByteScout Watermarking SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next