ByteScout Watermarking SDK - C# - Add Diagonal Stamp to Image - ByteScout

ByteScout Watermarking SDK – C# – Add Diagonal Stamp to Image

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

How to add diagonal stamp to image for stamp fits page diagonal in C# with ByteScout Watermarking SDK

Tutorial: how to add diagonal stamp to image for stamp fits page diagonal in C#

The documentation is designed to help you to implement the features on your side. ByteScout Watermarking SDK was made to help with stamp fits page diagonal 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.

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 stamp fits page diagonal. For implimentation of this functionality, please copy and paste code below into your app using code editor. Then compile and run your app. Enjoy writing a code with ready-to-use sample C# codes to implement stamp fits page diagonal using ByteScout Watermarking SDK.

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.

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"; // Set output file title string outputFilePath = "my_sample_output.jpg"; // Add image to apply watermarks to waterMarker.AddInputFile(inputFilePath, outputFilePath); // Create new watermark StampFitsPageDiagonal preset = new StampFitsPageDiagonal(); // Set stamp type preset.ImageFile = "[APPROVED]"; // 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); } } }

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