These source code samples are listed and grouped by their programming language and functions they use. ByteScout Watermarking SDK helps with simple vertical text 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.
C# code snippet like this for ByteScout Watermarking SDK works best when you need to quickly implement simple vertical text in your C# application. Open your C# project and simply copy & paste the code and then run your app! Test C# sample code examples whether they respond your needs and requirements for the project.
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)
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 SimpleVerticalText preset = new SimpleVerticalText(); // Set watermark text preset.Text = "Bytescout Watermarking"; // Set watermark font preset.Font = new WatermarkFont("Tahoma", FontStyle.Regular, FontSizeType.Points, 20); // Set watermark text color preset.TextColor = Color.Black; // Set text transparency preset.Transparency = 20; // Set watermark placement preset.Placement = WatermarkPlacement.MiddleCenter; // Set text rotation preset.TextRotation = TextRotation.Counterclockwise; // Add watermark to watermarker waterMarker.AddWatermark(preset); // Set output directory waterMarker.OutputOptions.OutputDirectory = "."; // Set output format waterMarker.OutputOptions.ImageFormat = OutputFormats.JPEG; // Apply watermarks waterMarker.Execute(); // open generated image file in default image viewer installed in Windows Process.Start(outputFilePath); } } }
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples