How to remove the backpic or fill pic from master slides?

Hi, support,

Is there any method to remove the backpic or fill picture from master slides?
Would you please show me the code how it works?

Thanks for your help.

Ducaisoft

PS: Please refer to the input.ppt and the output.ppt for your check.
DemoFiles.zip (322.6 KB)

@ducaisoft,

I suggest you to please try using following sample code.

	public static void RemoveBackground()
	{
		String path = @"C:\Users\mudas\Downloads\DemoFiles\";
		Presentation pres = new Presentation(path+ "Input.ppt");

		IMasterSlide master = pres.Masters[0];
		master.Background.FillFormat.FillType = FillType.NoFill;
		foreach(ILayoutSlide layout in pres.LayoutSlides)
		{
			layout.Background.FillFormat.FillType = FillType.NoFill;
		}
		foreach (ISlide slide in pres.Slides)
		{
			slide.Background.FillFormat.FillType = FillType.NoFill;
		}


		pres.Save(path + "saved.ppt", SaveFormat.Ppt);


	}

Thanks for your help.
But after the background has been removed, the background color of slides was reset to black, which is out of my expectation. How to reset the background color to white? Or, how to topcrop and bottomcrop the background pic(please refer to the Output2.zip)
OutPut2.zip (234.7 KB)

@ducaisoft,

I have not been able to observe any black background or exception. I request you to please provide working sample project along with snapshot of black background and exception. I have tested using Aspose.Slides for .NET 20.5.