GroupDocsGists
10/24/2017 - 7:09 AM

Examples-GroupDocs.Viewer.Examples.CSharp-GroupDocs.Viewer.Examples-Utilties-AddWatermark.cs

// For complete examples and data files, please go to https://github.com/groupdocsviewer/GroupDocs_Viewer_NET
//Initialize watermark object by passing the text to display.
Watermark watermark = new Watermark(text);
//Apply the watermark color by assigning System.Drawing.Color.
watermark.Color = color;
//Set the watermark's position by assigning an enum WatermarkPosition's value.
watermark.Position = position;
//set an integer value as watermark width 
watermark.Width = width;
//Assign intialized and populated watermark object to ImageOptions or HtmlOptions objects
options.Watermark = watermark;