Şekil veya Grafik Yansıma Efekti Çalışmak
Olası Kullanım Senaryoları
Aspose.Cells for Python via .NET, şekil veya grafiklerin yansıma efektleriyle çalışmak için Shape.reflection özelliği ve ReflectionEffect sınıfını sağlar. ReflectionEffect sınıfı, uygulama gereksinimlerine göre farklı sonuçlar elde etmek için ayarlanabilen aşağıdaki özellikleri içerir.
Şekil veya Grafik Yansıma Efekti Çalışmak
Aşağıdaki örnek kod, kaynak Excel dosyasını yükler ve varsayılan çalışma sayfasındaki ilk şekle erişir ve Shape.reflection sınıfının farklı özelliklerini ayarlar ve ardından çalışma kitabını çıktı Excel dosyasına kaydeder.
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Load your source excel file | |
wb = Workbook(dataDir + "sample.xlsx") | |
# Access first worksheet | |
ws = wb.worksheets[0] | |
# Access first shape | |
sh = ws.shapes[0] | |
# Set the reflection effect of the shape, set its Blur, Size, Transparency and Distance properties | |
re = sh.reflection | |
re.blur = 30.0 | |
re.size = 90.0 | |
re.transparency = 0.0 | |
re.distance = 80.0 | |
# Save the workbook in xlsx format | |
wb.save(dataDir + "output_out.xlsx") |