ByteScout Watermarking SDK - VB.NET - Add Watermark and Fit within Resize - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Watermarking SDK – VB.NET – Add Watermark and Fit within Resize

  • Home
  • /
  • Articles
  • /
  • ByteScout Watermarking SDK – VB.NET – Add Watermark and Fit within Resize

How to add watermark and fit within resize for fit within resize VB in VB.NET and ByteScout Watermarking SDK

How to add watermark and fit within resize in VB.NET with easy ByteScout code samples to make fit within resize VB. Step-by-step tutorial

The coding tutorials are designed to help you test the features without need to write your own code. Fit within resize 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.

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 watermark and fit within resize. Follow the instruction and copy – paste code for VB.NET into your project’s code editor. Enjoy writing a code with ready-to-use sample VB.NET codes to implement fit within resize VB using ByteScout Watermarking SDK.

Trial version of ByteScout is available for free download from our website. This and other source code samples for VB.NET 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)

Module1.vb
      
Imports System Imports System.Diagnostics Imports System.Drawing Imports System.Collections.Generic Imports Bytescout.Watermarking Imports Bytescout.Watermarking.Presets Module Module1 Sub Main() ' Create Watermarker instance Dim waterMarker As New Watermarker() ' Initialize library waterMarker.InitLibrary("demo", "demo") ' Set input file name Dim inputFilePath As String = "my_sample_image.jpg" ' Set output file title Dim outputFilePath As String = "my_sample_output.jpg" ' Add image to apply watermarks to waterMarker.AddInputFile(inputFilePath, outputFilePath) ' Allow resize waterMarker.OutputOptions.Resize = True ' Allow to enlarge image waterMarker.OutputOptions.DontEnlargeSmallImages = False ' Set resize type to pixels waterMarker.OutputOptions.ResizeType = ResizeType.Pixels ' Fit to width waterMarker.OutputOptions.ResizeFitWithin = FitWithin.WidthOnly ' Set width waterMarker.OutputOptions.ResizeWidthInPixels = 600 ' Set height waterMarker.OutputOptions.ResizeHeightInPixels = 20 ' 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

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