ByteScout Watermarking SDK - VB.NET - Add Annotation Watermark with Options - ByteScout

ByteScout Watermarking SDK – VB.NET – Add Annotation Watermark with Options

  • Home
  • /
  • Articles
  • /
  • ByteScout Watermarking SDK – VB.NET – Add Annotation Watermark with Options

How to add annotation watermark with options for annotation preset (advanced settings) (vb in VB.NET with ByteScout Watermarking SDK

See how to add annotation watermark with options to have annotation preset (advanced settings) (vb in VB.NET

On this page you will learn from code samples for programming in VB.NET. Annotation preset (advanced settings) (vb in VB.NET can be implemented with ByteScout Watermarking SDK. 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.

This rich sample source code in VB.NET for ByteScout Watermarking SDK includes the number of functions and options you should do calling the API to implement annotation preset (advanced settings) (vb. For implimentation of this functionality, please copy and paste code below into your app using code editor. Then compile and run your app. Use of ByteScout Watermarking SDK in VB.NET is also explained in the documentation included along with the product.

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

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

Module1.vb
      
Imports System.Drawing Imports Bytescout.Watermarking Imports Bytescout.Watermarking.Presets Module Module1 Sub Main() ' Create Watermarker instance Dim waterMarker As New Watermarker() Dim inputFilePath As String Dim outputFilePath As String ' Initialize library waterMarker.InitLibrary("demo", "demo") ' Set input file name inputFilePath = "my_sample_image.jpg" ' Set output file title outputFilePath = "my_sample_output.jpg" ' Add image to apply watermarks to waterMarker.AddInputFile(inputFilePath, outputFilePath) ' Create new watermark Dim preset As New TextAnnotation() ' Set radius of the corners of the rectangle preset.Radius = 30 ' Set text color preset.TextColor = Color.Black ' Set annotation background color preset.BackgroundColor = Color.White ' Set annotation background transparency preset.BackgroundTransparency = 40 ' Set text preset.Text = "Bytescout Watermarking" ' Set watermark font preset.Font = New WatermarkFont("Tahoma", FontStyle.Regular, FontSizeType.Points, 25) ' Set watermark placement preset.Placement = WatermarkPlacement.MiddleCenter ' 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) 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