Şeklin veya Grafiğin Yansıma Efektiyle Çalışma
Contents
[
Hide
]
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.
- ReflectionEffect.Blur
- ReflectionEffect.Direction
- Yansıma Etkisi. Mesafe
- ReflectionEffect.FadeDirection
- ReflectionEffect.RotWithShape
- ReflectionEffect.Size
- ReflectionEffect.Şeffaflık
- ReflectionEffect.Type
Aşağıdaki ekran görüntüsü, ayarlamak için Microsoft Excel arayüzünü gösterir.Yansıma Etkisişekil.
Ş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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); |