Guide for VB.NET
Core Document Formats
Additional Features
Create Watermark

VB.NET Imaging - Add Watermark to Image in VB.NET

How to Create Watermark on Images Using VB.NET Sample Codes

VB.NET
Home > .NET Imaging SDK > VB.NET > Create Watermark
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

Do you want to add a watermark on your images in a Visual Basic .NET image editing application? If so, you can choose this RasterEdge .NET Image SDK, which includes a basic image processing library component to easily add customized watermark in a single image or batches of it. add image to pdf itextsharp vb.net, open pdf in word c#, add watermark to pdf c#, barcode reader using vb net source code, add image to existing pdf using itextsharp c#, itextsharp remove text from pdf c#.
Related .net document control helps:
asp.net pdf editor control: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net ppt viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net document viewer c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
A watermark is a visible overlay embedded on an image or a picture, such as a digital photo, which often comes as a company / website logo, copyright notice or a few simple texts. By adding a customized watermark on your images, you can efficiently identify them and protect them from unauthorized use (especially online). c# pdf embed font, vb.net pdf to word converter, crop pdf page c#, c# split pdf by bookmark, tesseract c# pdf, c# get pdf page size, how to convert html to pdf using itextsharp in vb.net.
When you have installed VB.NET image processing library SDK, you can have easy access to add either an image watermark or a text one onto your local pictures (supporting image formats like bmp, jpeg, gif, png, tiff). You can check out some more features from the list below:
  • Simple to adjust watermark color, size (image width and height)
  • Support customizing watermark opacity / transparency ranging from 0 to 100
  • Modify text watermark by setting text font, size, style, etc
  • Able to save locally the image with watermark using VB.NET programming
  • Easy to integrate into Visual Basic .NET imaging applications
This page will show you how to create high-quality watermark in your images. Here are the sections that will appear later:
  • RasterEdge VB.NET image watermarking library functions
  • Visual Basic .NET method to create watermark in image
  • Visual Basic .NET sample code to add watermark in image
  • More tutorials for VB.NET image processing functionality
VB.NET Image Watermarking Functions
This VB.NET image watermarking control library is one of the composing libraries of RasterEdge .NET Image SDK. It is a relatively independent and light weight library SDK for VB.NET image manipulation, which is a perfect combination of easy Microsoft Visual Studio integration with full compatibility for .NET Framework.
Using this imaging DLL, you will be enabled to add watermark to image individually or in batch mode for multiple images in VB project. You can decide to add either a text watermark or an image one onto it, and whether to burn it to the pictures to make it permanent.
As for the watermark itself, there are plenty of options for you. VB developers will be entitled to easily adjust watermark text content, text font type, font size, font style, layout (diagonal / horizontal), watermark opacity / transparency, brush color, brush style, location, and updated image restoration directory, etc.
VB.NET Method to Add Watermark to Image
In the code tab below we will show you the Visual Basic .NET method for creating a watermark in your local images. As you can see, this VB.NET image control library is flexible enough to allow you to customize the font (font type, size, and style), brush (style, color, opacity), and the new image location.
Public Sub CreateWatermark(s As String, font As Font, brush As Brush, point As PointF)
End Sub
VB.NET Code to Add Watermark to Image
In this section, we will provid you with the complete Visual Basic .NET sample code to add a watermark to your demo image. Please feel free to copy them to your program for a test.
This VB demo will take you to load a sample image to the project first, set the text watermark properties (font type "Times New Roman", size "16", and style "Bold"), and then adjust brush color to black and opacity to 100 (indicating a totally solid watermark). Finally we will save the updated image with watermark to your disk C with the name "1-watermark.bmp".
Imports System.IO
Imports System.Drawing.Printing
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing

Dim Image As New RasterEdgeImaging()

'Create an instance of Image and load an existing image
Using image As Image = Image.LoadImageFromFile("C:\1.bmp")
End Using
If True Then
Dim graphics As New Graphics(image)
Dim font As New RasterEdgeImaging.Font("Times New Roman", 16, FontStyle.Bold)
Dim brush As New RasterEdgeImaging.Brushes.SolidBrush()
brush.Color = Color.Black
brush.Opacity = 100
image.CreateWatermark("watermark", font, brush, New PointF(image.Width / 2, image.Height / 2))
image.Save("C:\1-watermark.bmp")
End If
More Tutorials!
Find more user guides with RasterEdge .NET Image SDK using VB.NET sample codings!


Recommend this to Google+


RasterEdge.com is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2023 Raster Edge.com