Şeklin veya Grafiğin Yansıma Efektiyle Çalışma

Olası Kullanım Senaryoları

Aspose.Cells şunları sağlar:Shape.ReflectionEffectşeklin veya grafiğin yansıma efektiyle çalışma özelliği. Gereksinimlerinize göre farklı sonuçlar elde etmek için ayarlayabileceğiniz aşağıdaki alt özellikleri içerir.

Aşağıdaki ekran görüntüsü, ayarlamak için Microsoft Excel arayüzünü gösterir.Yansıma Etkisişekil.

yapılacaklar:resim_alternatif_metin

Şeklin veya Grafiğin Yansıma Efektiyle Çalışma

Aşağıdaki örnek kod,kaynak excel dosyası ve ilk çalışma sayfasındaki ilk şekle erişir ve alt özelliklerini ayarlar.Shape.ReflectionEffectözelliğine ve ardından çalışma kitabını şuraya kaydeder:çıktı excel dosyası.

Basit kod

// 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(WorkingWithReflectionEffect.class) + "articles/";
// Load your source excel file
Workbook wb = new Workbook(dataDir + "WorkingWithReflectionEffect_in.xlsx");
// Access first worksheet
Worksheet ws = wb.getWorksheets().get(0);
// Access first shape
Shape sh = ws.getShapes().get(0);
// Set the reflection effect of the shape
// Set its Blur, Size, Transparency and Distance properties
ReflectionEffect re = sh.getReflection();
re.setBlur(30);
re.setSize(90);
re.setTransparency(0);
re.setDistance(80);
// Save the workbook in xlsx format
wb.save(dataDir + "WorkingWithReflectionEffect_out.xlsx");