Sample source codes below will show you how to cope with a difficult task, for example, logo image with text in VB.NET. ByteScout Watermarking SDK helps with logo image with text 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 samples for VB.NET developers help to speed up the application’s code writing when using ByteScout Watermarking SDK. For implimentation of this functionality, please copy and paste code below into your app using code editor. Then compile and run your app. Further enhancement of the code will make it more vigorous.
Our website provides free trial version of ByteScout Watermarking SDK that includes source code samples to help with your VB.NET project.
Imports Bytescout.Watermarking 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) ' Create new watermark Dim preset = New Presets.LogoWithText() ' Select image file preset.ImageFile = "mylogo.png" ' Set text preset.Text = "Bytescout Watermarking" ' Add watermark to watermarker waterMarker.AddWatermark(preset) ' 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