ByteScout Watermarking SDK - C# - Add Simple Watermark - ByteScout

ByteScout Watermarking SDK – C# – Add Simple Watermark

  • Home
  • /
  • Articles
  • /
  • ByteScout Watermarking SDK – C# – Add Simple Watermark

How to add simple watermark for hello_world_cs in C# with ByteScout Watermarking SDK

Tutorial: how to add simple watermark for hello_world_cs in C#

The coding tutorials are designed to help you test the features without need to write your own code. ByteScout Watermarking SDK was made to help with hello_world_cs in C#. ByteScout Watermarking SDK is the powerful SDK can apply high quality visible and semivisible watermarks into PNG, JPG, BMP pictures and TIFF scans. Doznes of presets are available, multiple watermarks can be applied. Can add logo based watermark from image, can adjust font size, font family, colors.

C# code samples for C# developers help to speed up the application’s code writing when using ByteScout Watermarking SDK. Follow the instruction and copy – paste code for C# into your project’s code editor. This basic programming language sample code for C# will do the whole work for you in implementing hello_world_cs in your app.

Our website provides free trial version of ByteScout Watermarking SDK that includes source code samples to help with your C# project.

Try ByteScout Watermarking SDK today: Get 60 Day Free Trial or sign up for Web API

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"; // Set output file title string outputFilePath = "my_sample_output.jpg"; // Add image to apply watermarks to waterMarker.AddInputFile(inputFilePath, outputFilePath); // Create new watermark TextFitsPage preset = new TextFitsPage(); // Set watermark text preset.Text = "Bytescout Watermarking"; // Add watermark to watermarker waterMarker.AddWatermark(preset); // Set output directory waterMarker.OutputOptions.OutputDirectory = "."; // Apply watermarks waterMarker.Execute(); // open generated image file in default image viewer installed in Windows Process.Start(outputFilePath); } } }

Try ByteScout Watermarking SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Watermarking SDK page

Explore ByteScout Watermarking SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next