Today you are going to learn how to add filename to image in VB.NET. ByteScout Watermarking SDK was made to help with filename (vb in VB.NET. 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 samples for VB.NET developers help to speed up the application’s code writing when using ByteScout Watermarking SDK. Follow the instruction and copy – paste code for VB.NET into your project’s code editor. Enjoy writing a code with ready-to-use sample VB.NET codes to implement filename (vb using ByteScout Watermarking SDK.
ByteScout Watermarking SDK – free trial version is on available our website. Also, there are other code samples to help you with your VB.NET application included into trial version.
Imports System.Drawing Imports Bytescout.Watermarking Imports Bytescout.Watermarking.Presets Module Module1 Sub Main() ' Create Watermarker instance Dim waterMarker = 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 FileName() ' 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