usmanazizgroupdocs
4/17/2017 - 9:48 AM

Documents-AddWatermarkWithImageEffectsToExcel.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As CellsDocument = Document.Load(Of CellsDocument)(Utilities.MapSourceFilePath(FilePath))
    Using watermark = New ImageWatermark("D:\logo.tif")
        Dim effects As New CellsImageEffects()
        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