العمل مع تأثير الانعكاس الداخلي للشكل أو الرسم البياني
سيناريوهات الاستخدام المحتملة
توفر Aspose.Cells خاصية Shape.ReflectionEffect للعمل مع تأثير الانعكاس للشكل أو المخطط. تحتوي على الخصائص الفرعية التالية التي يمكنك ضبطها لتحقيق نتائج مختلفة وفقًا لمتطلباتك.
- ReflectionEffect.Blur
- ReflectionEffect.Direction
- ReflectionEffect.Distance
- ReflectionEffect.FadeDirection
- ReflectionEffect.RotWithShape
- ReflectionEffect.Size
- ReflectionEffect.Transparency
- ReflectionEffect.Type
الصورة التالية تظهر واجهة Microsoft Excel لضبط تأثير الانعكاس للشكل.
العمل مع تأثير الانعكاس للشكل أو الرسم البياني
الكود المصدر أدناه يحمل ملف Excel المصدري ويصل إلى الشكل الأول في الورقة العمل الأولى ويضبط الخصائص الفرعية لـ Shape.ReflectionEffect ومن ثم يحفظ مصنف العمل في الملف الناتج للإكسل (5472539.xlsx).
الكود المثالي
// 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"); |