Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells provides the Shape.Glow property along with the GlowEffect class to work with the glow effect of shapes or charts. The GlowEffect class contains the following properties which can be set to achieve different results according to application requirements.
The following sample code loads the source Excel file, accesses the first shape in the first worksheet, sets the sub‑properties of the Shape.Glow property, and then saves the workbook to the output Excel file.
#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;
using namespace Aspose::Cells::Drawing;
int main()
{
Aspose::Cells::Startup();
// Source directory path
U16String srcDir(u"..\\Data\\01_SourceDirectory\\");
// Output directory path
U16String outDir(u"..\\Data\\02_OutputDirectory\\");
// Load your source Excel file
Workbook wb(srcDir + u"sample.xlsx");
// Access first worksheet
Worksheet ws = wb.GetWorksheets().Get(0);
// Access first shape
Shape sh = ws.GetShapes().Get(0);
// Set the glow effect of the shape, set its Size and Transparency properties
GlowEffect ge = sh.GetGlow();
ge.SetSize(30);
ge.SetTransparency(0.4);
// Save the workbook in XLSX format
wb.Save(outDir + u"output_out.xlsx");
std::cout << "Glow effect applied successfully!" << std::endl;
Aspose::Cells::Cleanup();
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.