Working with the Glow Effect of Shape or Chart

Possible Usage Scenarios

Aspose.Cells provides the Shape.Glow property to work with the glow effect of shape or chart. It contains the following sub properties which you can set to achieve different results as per your requirements.

  • GlowEffect.Size
  • GlowEffect.Transparency

The following screenshot shows Microsoft Excel interface to set the Glow Effect of Shape.

todo:image_alt_text

Working with the Glow Effect of Shape or Chart

The following sample code loads the source excel file and accesses the first shape in first worksheet and sets the sub properties of Shape.Glow property and then saves the workbook in output excel file.

Sample Code

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getSharedDataDir(WorkingWithGlowEffect.class) + "articles/";
// Load your source excel file
Workbook wb = new Workbook(dataDir + "WorkingWithGlowEffect_in.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(dataDir + "WorkingWithGlowEffect_out.xlsx");