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.
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).
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
Looking for some other (Visual Basic) .NET image processing user manuals? Here are a few for you:
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)
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".
Dim Image As New RasterEdgeImaging()
'Create an instance of Image and load an existing image
Using image As Image = Image.LoadImageFromFile("C:\1.bmp")
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))
Find more user guides with RasterEdge .NET Image SDK using VB.NET sample codings!
Recommend this to Google+