GroupDocsGists
10/19/2017 - 11:00 AM

SetTiledSemitransparentBackground.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As SlidesDocument = Document.Load(Of SlidesDocument)(Utilities.MapSourceFilePath(FilePath))
    Dim slide As SlidesSlide = doc.Slides(0)
    slide.ImageFillFormat.BackgroundImage = New SlidesWatermarkableImage(File.ReadAllBytes("D:\background.png"))
    slide.ImageFillFormat.TileAsTexture = True
    slide.ImageFillFormat.Transparency = 0.5
    doc.Save()