ByteScout Watermarking SDK - VB.NET - Resize Image in Percents - ByteScout

ByteScout Watermarking SDK – VB.NET – Resize Image in Percents

  • Home
  • /
  • Articles
  • /
  • ByteScout Watermarking SDK – VB.NET – Resize Image in Percents

resize image in percents in VB.NET with ByteScout Watermarking SDK

Write code in VB.NET to make resize image in percents with this How-To tutorial

The coding tutorials are designed to help you test the features without need to write your own code. ByteScout Watermarking SDK was made to help with resize image in percents in VB.NET. 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.

VB.NET code snippet like this for ByteScout Watermarking SDK works best when you need to quickly implement resize image in percents in your VB.NET application. VB.NET sample code is all you need: copy and paste the code to your VB.NET application’s code editor, add a reference to ByteScout Watermarking SDK (if you haven’t added yet) and you are ready to go! Enhanced documentation and tutorials are available along with installed ByteScout Watermarking SDK if you’d like to dive deeper into the topic and the details of the API.

Trial version can be obtained from our website for free. It includes this and other source code samples for VB.NET.

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

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 ' Set resize type to percentage waterMarker.OutputOptions.ResizeType = ResizeType.Percentage ' Reduce image by 1/2 waterMarker.OutputOptions.ResizePercentage = 50 ' 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)



Get 60 Day Free Trial or Visit ByteScout Watermarking SDK Home Page

Explore ByteScout Watermarking SDK Documentation

Get ByteScout Watermarking SDK Free Training


Get Your Free API Key

Explore Web API Documentation