usmanazizgroupdocs
4/17/2017 - 9:47 AM

Documents-AddWatermarkWithImageEffectsWord.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As WordsDocument = Document.Load(Of WordsDocument)("D:\test.docx")
    Using watermark = New ImageWatermark("D:\logo.tif")
        Dim effects As New WordsImageEffects()
        effects.Brightness = 0.7
        effects.Contrast = 0.6
        effects.ChromaKey = Color.Red
        effects.BorderLineFormat.Enabled = True
        effects.BorderLineFormat.Weight = 1
        doc.AddImageWatermark(watermark, effects)
    End Using
    doc.Save()
End Using