ByteScout Watermarking SDK - C# - Add Whole Page Text Watermark - ByteScout

ByteScout Watermarking SDK – C# – Add Whole Page Text Watermark

  • Home
  • /
  • Articles
  • /
  • ByteScout Watermarking SDK – C# – Add Whole Page Text Watermark

How to add whole page text watermark for text fits page in C# using ByteScout Watermarking SDK

See how to add whole page text watermark to have text fits page in C#

Sample source codes below will show you how to cope with a difficult task, for example, text fits page in C#. Text fits page in C# can be implemented with ByteScout Watermarking SDK. 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.

C# code samples for C# developers help to speed up the application’s code writing when using ByteScout Watermarking SDK. For implimentation of this functionality, please copy and paste code below into your app using code editor. Then compile and run your app. Further enhancement of the code will make it more vigorous.

Trial version of ByteScout is available for free download from our website. This and other source code samples for C# and other programming languages are available.

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

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) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout Watermarking SDK Home Page

Explore ByteScout Watermarking SDK Documentation

Get ByteScout Watermarking SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next