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

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

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

resize image in pixels in VB.NET using ByteScout Watermarking SDK

How To: tutorial on resize image in pixels in VB.NET

ByteScout tutorials explain the material for programmers who use VB.NET. ByteScout Watermarking SDK helps with resize image in pixels in VB.NET. ByteScout Watermarking SDK is the library for software developers that can be used to quickly add image watermarking features into your web or desktop applications. Use ready to use presets or create your own to be applied for input PNG, JPG, BMP images. Can customize fonts, text position and rotation if required.

The SDK samples like this one below explain how to quickly make your application do resize image in pixels in VB.NET with the help of ByteScout Watermarking SDK. To do resize image in pixels in your VB.NET project or application you may simply copy & paste the code and then run your app! VB.NET application implementation typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.

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: Get 60 Day Free Trial or sign up for Web API

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 ' Set resize type to percentage waterMarker.OutputOptions.ResizeType = ResizeType.Pixels ' Set image width waterMarker.OutputOptions.ResizeWidthInPixels = 100 ' Set image height waterMarker.OutputOptions.ResizeHeightInPixels = 100 ' 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 version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Watermarking SDK page

Explore ByteScout Watermarking SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next