GroupDocsGists
10/19/2017 - 11:00 AM

SetBackgroundImageForChart.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))
    doc.Worksheets(0).Charts(0).ImageFillFormat.BackgroundImage = New CellsWatermarkableImage(File.ReadAllBytes("D:\test.png"))
    doc.Worksheets(0).Charts(0).ImageFillFormat.Transparency = 0.5
    doc.Worksheets(0).Charts(0).ImageFillFormat.TileAsTexture = True
    doc.Save()