ByteScout Watermarking SDK - VB.NET - Change Image Resolution in DPI - ByteScout

ByteScout Watermarking SDK – VB.NET – Change Image Resolution in DPI

  • Home
  • /
  • Articles
  • /
  • ByteScout Watermarking SDK – VB.NET – Change Image Resolution in DPI

How to change image resolution in DPI in VB.NET using ByteScout Watermarking SDK

The tutorial shows how to change image resolution in DPI in VB.NET

With this source code sample you may quickly learn how to change image resolution in DPI 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 and you can use it to change image resolution in DPI with VB.NET.

VB.NET code samples for VB.NET developers help to speed up coding of your application when using ByteScout Watermarking SDK. Just copy and paste the code into your VB.NET application’s code and follow the instruction. Implementing VB.NET application typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.

ByteScout Watermarking SDK free trial version is available on our website. VB.NET and other programming languages are supported.

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 to override resolution waterMarker.OutputOptions.OverrideResolution = True ' Set vertical resolution waterMarker.OutputOptions.VerticalResolution = 300 ' Set horizontal resolution waterMarker.OutputOptions.HorizontalResolution = 300 ' 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