usmanazizgroupdocs
4/17/2017 - 9:12 AM

GetInformationOfSlideBackgroundsPowerPointDocument.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (SlidesDocument doc = Document.Load<SlidesDocument>(Utilities.MapSourceFilePath (FilePath)))
{
    foreach (SlidesSlide slide in doc.Slides)
    {
        if (slide.BackgroundImage != null)
        {
            Console.WriteLine(slide.BackgroundImage.Width);
            Console.WriteLine(slide.BackgroundImage.Height);
            Console.WriteLine(slide.BackgroundImage.GetBytes().Length);
        }
    }
}