Unleash the creative potential of your PowerPoint presentations in your C++ applications running on the Windows platform with Aspose.Slides for C++ 24.8 release.
Tiled Picture Fills
This version of the C++ PowerPoint API breathes life into your presentations by providing the ability to set picture or texture fills for shapes and backgrounds.
Code sample showing how to add a rectangle shape with a tiled picture fill.
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
System::SharedPtr<ISlide> firstSlide = pres->get_Slide(0);
System::SharedPtr<IImage> newImage = Images::FromFile(u"image.png");
System::SharedPtr<IPPImage> ppImage = pres->get_Images()->AddImage(newImage);
// Adds the new Rectangle shape
auto newShape = firstSlide->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 0.0f, 0.0f, 350.0f, 350.0f);
// Sets the fill type of the new shape to Picture
newShape->get_FillFormat()->set_FillType(FillType::Picture);
// Sets the shape's fill image
System::SharedPtr<IPictureFillFormat> pictureFillFormat = newShape->get_FillFormat()->get_PictureFillFormat();
pictureFillFormat->get_Picture()->set_Image(ppImage);
// Sets the picture fill mode to Tile and changes the properties
pictureFillFormat->set_PictureFillMode(PictureFillMode::Tile);
pictureFillFormat->set_TileOffsetX(-275.0f);
pictureFillFormat->set_TileOffsetY(-247.0f);
pictureFillFormat->set_TileScaleX(25.0f);
pictureFillFormat->set_TileScaleY(15.0f);
pictureFillFormat->set_TileAlignment(RectangleAlignment::BottomRight);
pictureFillFormat->set_TileFlip(TileFlip::FlipBoth);
pres->Save(u"Tile.pptx", SaveFormat::Pptx);
Source*
Enhanced Font Management
Developers can now gain intricate control over fonts, and extract font data as byte arrays, and determine embedding levels for informed decisions on Windows OS. It is also possible to identify restricted fonts using the latest Python library release.
Sample code for retrieving font data:
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::ArrayPtr<System::SharedPtr<IFontData>> fonts = pres->get_FontsManager()->GetFonts();
System::ArrayPtr<uint8_t> bytes = pres->get_FontsManager()->GetFontBytes(fonts[0], System::Drawing::FontStyle::Regular);
Source*
Sample code to retrieve the font embedding level:
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"Presentation.pptx");
System::ArrayPtr<System::SharedPtr<IFontData>> fontDatas = pres->get_FontsManager()->GetFonts();
System::ArrayPtr<uint8_t> bytes = pres->get_FontsManager()->GetFontBytes(fontDatas[0], System::Drawing::FontStyle::Regular);
EmbeddingLevel embeddingLevel = pres->get_FontsManager()->GetFontEmbeddingLevel(bytes, fontDatas[0]->get_FontName());
Source*
Improved MathML Export
Aspose.Slides for C++ 24.8 ensures color and font size fidelity when exporting presentations as MathML documents within your presentation manipulation apps.
Summary Zoom in PDFs
Easily access Summary Zoom functionality in exported PDF documents for a seamless viewing experience on Windows-powered machines.
Promote better collaboration by displaying comments in the generated HTML5 presentations using the Python library.
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Slides for C++ 24.8 Release Notes.