ByteScout tutorials explain the code material for beginners and advanced programmers who are using C#. ByteScout Watermarking SDK was made to help with actual units resize 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 snippet like this for ByteScout Watermarking SDK works best when you need to quickly implement actual units resize 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.
Our website provides free trial version of ByteScout Watermarking SDK that includes source code samples to help with your C# project.
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);
// Allow resize
waterMarker.OutputOptions.Resize = true;
// Set resize type to percentage
waterMarker.OutputOptions.ResizeType = ResizeType.Actual;
// Set units type
waterMarker.OutputOptions.ResizeActualUnits = ActualSizeUnits.inches;
// Set image width
waterMarker.OutputOptions.ResizeWidthInUnits = 1.5f;
// Set image height
waterMarker.OutputOptions.ResizeHeightInUnits = 2.0f;
// Set output directory
waterMarker.OutputOptions.OutputDirectory = ".";
// 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
Sorry! This product is not available.
Please click here to visit main page for the list of all available products and solutions.
Product Links: