' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As Document = Document.Load(Utilities.MapSourceFilePath(PngFilePath))
' Initialize the font to be used for watermark
Dim font As New Font("Arial", 19, FontStyle.Bold Or FontStyle.Italic)
Dim watermark As New TextWatermark("Test watermark", font)
' Set watermark properties
watermark.ForegroundColor = Color.Red
watermark.BackgroundColor = Color.Blue
watermark.TextAlignment = TextAlignment.Right
watermark.Opacity = 0.5
doc.AddWatermark(watermark)
doc.Save()
End Using