ByteScout Watermarking SDK - C# - Add Diagonal Text Watermark - ByteScout

ByteScout Watermarking SDK – C# – Add Diagonal Text Watermark

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

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

How to add diagonal text watermark for text fits page diagonal in C#: Step By Step Tutorial

We’ve created and updating regularly our sample code library so you may quickly learn text fits page diagonal and the step-by-step process in C#. ByteScout Watermarking SDK was made to help with text fits page diagonal in C#. ByteScout Watermarking SDK is the library for software developers that can be used to quickly add image watermarking features into your web or desktop applications. Use ready to use presets or create your own to be applied for input PNG, JPG, BMP images. Can customize fonts, text position and rotation if required.

This rich sample source code in C# for ByteScout Watermarking SDK includes the number of functions and options you should do calling the API to implement text fits page diagonal. Sample code in C# is all you need. Copy-paste it to your the code editor, then add a reference to ByteScout Watermarking SDK and you are ready to try it! Enjoy writing a code with ready-to-use sample C# codes to implement text fits page diagonal using ByteScout Watermarking SDK.

ByteScout Watermarking SDK – free trial version is on available our website. Also, there are other code samples to help you with your C# application included into trial version.

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 TextFitsPageDiagonal preset = new TextFitsPageDiagonal(); // 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