ByteScout Watermarking SDK - VB.NET - Add Simple Watermark - ByteScout

ByteScout Watermarking SDK – VB.NET – Add Simple Watermark

  • Home
  • /
  • Articles
  • /
  • ByteScout Watermarking SDK – VB.NET – Add Simple Watermark

How to add simple watermark for hello_world_vb in VB.NET using ByteScout Watermarking SDK

Tutorial: how to add simple watermark for hello_world_vb in VB.NET

Every ByteScout tool contains example VB.NET source codes that you can find here or in the folder with installed ByteScout product. ByteScout Watermarking SDK helps with hello_world_vb in VB.NET. 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.

Fast application programming interfaces of ByteScout Watermarking SDK for VB.NET plus the instruction and the code below will help to learn how to add simple watermark. Sample code in VB.NET 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! Further enhancement of the code will make it more vigorous.

Our website provides free trial version of ByteScout Watermarking SDK that includes source code samples to help with your VB.NET project.

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

Module1.vb
      
Imports System.Diagnostics Imports Bytescout.Watermarking Imports Bytescout.Watermarking.Presets Module Module1 Sub Main() ' Create new watermarker Dim waterMarker As New Watermarker() ' Create new preset Dim preset As New TextFitsPage() ' Create new string Dim inputFilePath As String ' Create new string Dim outputFilePath As String ' Set input file path inputFilePath = "my_sample_image.jpg" ' Set output file path outputFilePath = "my_sample_output.jpg" ' Initialize library waterMarker.InitLibrary("demo", "demo") ' Add image to apply watermarks to waterMarker.AddInputFile(inputFilePath, outputFilePath) ' Set preset 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) End Sub End Module

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