Writing of the code to add logo and text to images with options in VB.NET can be done by developers of any level using ByteScout Watermarking SDK. ByteScout Watermarking SDK helps with logoimagewithtext preset (vb 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.
VB.NET code snippet like this for ByteScout Watermarking SDK works best when you need to quickly implement logoimagewithtext preset (vb in your VB.NET application. This VB.NET sample code should be copied and pasted into your project. After doing this just compile your project and click Run. 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.
ByteScout free trial version is available for FREE download from our website. Programming tutorials along with source code samples are included.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
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 LogoWithText() ' Select image file preset.ImageFile = "mylogo.png" 'Set text transparency preset.Transparency = 40 ' Set watermark placement preset.Placement = WatermarkPlacement.MiddleCenter ' Set text preset.Text = "Bytescout Watermarking" ' Set text location preset.TextLocation = TextLocation.Bottom ' Set text color preset.TextColor = Color.Black ' Set text Alignment preset.TextAlignment = TextAlignment.Center ' Set text font preset.Font = New WatermarkFont("Tahoma", FontStyle.Regular, FontSizeType.Points, 20) ' 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
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples