Şekil veya Grafiklerin Parlaklık Efekti ile Çalışmak Node.js üzerinden C++
Olası Kullanım Senaryoları
Aspose.Cells, şekil veya grafiğin parlaklık efektleri ile çalışmak için Shape.getGlow() özelliği ve GlowEffect sınıfını sağlar. GlowEffect sınıfı, uygulama gereksinimlerine göre farklı sonuçlar elde etmek için ayarlanabilen aşağıdaki özellikleri içerir.
Şekil veya Grafik Gölgelendirme Efekti Çalışmak
Aşağıdaki örnek kod, source excel dosyasını yükler, ilk çalışma sayfasındaki ilk şekli erişir ve Shape.getGlow() özellik alt özelliklerini ayarlar, ardından çalışma kitabını çıktı excel dosyasına kaydeder.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "sample.xlsx");
// Load your source excel file
const workbook = new AsposeCells.Workbook(filePath);
// Access first worksheet
const worksheet = workbook.getWorksheets().get(0);
// Access first shape
const shape = worksheet.getShapes().get(0);
// Set the glow effect of the shape, Set its Size and Transparency properties
const glowEffect = shape.getGlow();
glowEffect.setSize(30);
glowEffect.setTransparency(0.4);
// Save the workbook in xlsx format
workbook.save(path.join(dataDir, "output_out.xlsx"));