Lavorare con l effetto Glow della forma o del grafico

Possibili Scenari di Utilizzo

Aspose.Cells fornisce la proprietà Shape.Glow per lavorare con l’effetto glow della forma o del grafico. Contiene le seguenti sottoproprietà che è possibile impostare per ottenere risultati diversi secondo le proprie esigenze.

  • GlowEffect.Size
  • GlowEffect.Transparency

Lo screenshot seguente mostra l’interfaccia di Microsoft Excel per impostare l’effetto Glow della forma.

todo:image_alt_text

Lavorare con l’effetto Glow della forma o del grafico

Il codice di esempio seguente carica il file Excel di origine e accede alla prima forma nel primo foglio di lavoro e imposta le sottoproprietà della proprietà Shape.Glow e poi salva il workbook nel file Excel di output.

Codice di Esempio

// 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");