@pankajku,
The issues you found earlier (filed as SLIDESCPP-4035) have been resolved in Aspose.Slides for C++ 25.6 (NuGet (x64), NuGet (x86), Windows, Linux, macOS).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.
With Aspose.Slides for C++ 25.6, please try using the following code example:
auto presentation = MakeObject<Presentation>(u"ATest_1.pptx");
for (auto&& shape : presentation->get_Slide(0)->get_Shapes())
{
auto fillFormat = shape->get_FillFormat()->GetEffective();
auto fillType = fillFormat->get_FillType();
Console::WriteLine(u"{0}:", shape->get_Name());
if (ObjectExt::Is<IAutoShape>(shape))
{
auto autoShape = ExplicitCast<IAutoShape>(shape);
Console::WriteLine(u"\tUse slide background: {0}", autoShape->get_UseBackgroundFill());
}
Console::WriteLine(u"\tFill type: {0}", ObjectExt::ToString(fillType));
if (fillType == FillType::Solid)
{
auto fillColor = fillFormat->get_SolidFillColor();
Console::WriteLine(u"\t{0}", fillColor);
}
}
presentation->Dispose();
The result after the fix:
Rectangle 8:
Use slide background: True
Fill type: Solid
Color [A=255, R=255, G=255, B=255]
Rounded Rectangle 11:
Use slide background: True
Fill type: Solid
Color [A=255, R=255, G=255, B=255]
This means that the “Slide background fill” is enabled, and calculating the effective fill (taken from the slide background) shows that it is white.
IAutoShape::get_UseBackgroundFill()
returns true
if the “Slide background fill” option is selected for the shape; otherwise, it returns false
. In the PowerPoint UI, all fill options—including “Slide background fill”—are presented in a single list. In Aspose.Slides, get_UseBackgroundFill()
specifically indicates whether the “Slide background fill” option is enabled; if it isn’t, a Solid, Gradient, or other fill is applied.