Every ByteScout tool contains example VB.NET source codes that you can find here or in the folder with installed ByteScout product. Logoimage (vb in VB.NET can be implemented with ByteScout Watermarking SDK. 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 logoimage (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. This basic programming language sample code for VB.NET will do the whole work for you in implementing logoimage (vb in your app.
ByteScout free trial version is available for FREE download from our website. Programming tutorials along with source code samples are included.
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 LogoImage() ' Select image file preset.ImageFile = "mylogo.png" ' Set text transparency preset.Transparency = 40 ' Set watermark placement preset.Placement = WatermarkPlacement.MiddleCenter ' Set scale preset.Scale = 2.0F ' 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