Guide for VB.NET
Core Document Formats
Watermark
Additional Features

VB.NET TIFF - TIFF Watermark Creation Guide

Detailed VB.NET Sample Codes to Add Watermark on TIFF File in .NET Project

VB.NET
Home > .NET Imaging SDK > VB.NET > Create Watermark on TIFF

"This online guide content is Out Dated!
    Please get the latest XDoc.Tiff C# Developer Guide here.
"

VB.NET TIFF File Watermark Printing Overview
A watermark is useful when you do not want your images or documents to be swiped by others without your knowledge, or when you want to put a company logo / confidential marks into your file as some private material. By printing watermark to a doc, for example, your TIFF file, you have added some identifying information to the image, like a company name or URL, which would not be obscured and cannot be removed (if you burn it to the document).
Related .net document control helps:
mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net excel view: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net office document viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net dicom web viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
document viewer asp.net c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
RasterEdge provides a multi-page TIFF document watermark creator, which is, in fact, one of the many TIFF file editing functionality of the RasterEdge TIFF processing add-on control library. Using this VB.NET TIFF plug-in, developers can easily build an imaging application to manipulate a TIFF file and add watermark into it with any content and in any style.
This page is a detailed tutorial to help you add watermark in your TIFF file in an .NET image processing application. Here are the sections that will be mentioned later on:
  • Visual Basic .NET TIFF watermark creator feature list
  • How to add watermark in a multi-page TIFF file using VB.NET sample codes
We understand that you might also need other user manuals for TIFF processing besides watermarking, so we have prepared various TIFF editing guides with demo codes for you. You can go to this page to see how to create, load and save a TIFF file in VB.NET. Or you can compress a TIFF file easily with this TIFF Compression Guide in VB.NET. If you want to add a barcode into your TIFF file, go to this page to write barcode images on multi-page TIFF doc.
VB.NET TIFF Watermark Printing Library Feature List
  • Easy to be integrated into Microsoft Visual Studio 2005 and later versions
  • Can be easily integrated into VB.NET Windows application, ASP.NET web project and Class Library
  • Simple to add semi-transparent watermarks in your multi-page TIFF doc
  • Support both text and image watermarks (png, jpeg, gif, and bmp formats) printing in your VB.NET TIFF
  • Providing several commonly used demo watermarks such as "Confidential", "Sample", etc
  • User-defined text content or image resource are supported for TIFF file watermark printing in VB.NET
  • Developers can decide the watermark input location and style with simple VB.NET programming
  • Detailed Visual Basic .NET sample codes provided for TIFF watermark embedding
  • Easily save updated TIFF with watermark to your local directory
VB.NET Sample Codes to Add Watermark in TIFF
Now that you have a TIFF file with multiple pages that you want to add watermark. What do you have to do to get that done? We have provided below in the code tab a detailed watermarking example with complete Visual Basic (VB.NET) demo code. In order to make use of that code you have some preparation work to do.
First you need to download the RasterEdge .NET imaging library SDK online to get the library. Then you need to activate a license to validate the library. After that please make sure that you have installed Microsoft Visual Studio (2005 or later) so you can create a VB.NET Windows application to add the RasterEdge TIFF library to your reference.
And that's all about it! Now you can simply copy the entire code displayed below to your project and run. You will find the sample image "Watermark.png" is successfully added to your multi-page TIFF file "Sample1.tif". Of course it is okay if you want to test with your own TIFF doc or watermark image, just make sure that you have made necessary changes to the related codings such as the TIFF file or directory path & name.
Public Shared FolderName As String = "c:/"

Private Sub button1_Click(sender As Object, e As EventArgs)

Dim fileName1 As String = FolderName & "Sample1.tif"

Dim fileName2 As String = FolderName & "Watermark.png"

Dim doc1 As REDocument = REFile.OpenDocumentFile(fileName1, New TIFDecoder())
'use TIFDecoder open one tif file
Dim doc2 As REDocument = REFile.OpenDocumentFile(fileName2, New PNGDecoder())
'use PNGDecoder open one tif file

Dim doc1 As New Template()

doc1.Elements.Add(doc2)

DocumentFile.Template = doc1

REFile.SaveDocumentFile(doc, "c:/watermark.tif", New TIFEncoder())

End Sub


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-2017 Raster Edge.com