ThreeDFormat — Aspose.Slides FOSS for Java API Reference
Enumerations ThreeDFormat class تمثل خصائص تنسيق ثلاثية الأبعاد لشكل. إنها تمتد PVIObject وتنفذ IThreeDFormat و IThreeDParamSource.
Enumerations: org.aspose.slides.foss
import org.aspose.slides.foss.*;public class ThreeDFormat extends PVIObject implements IThreeDFormat, IThreeDParamSourceEnumerations
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
getBevelTop() | IShapeBevel | Enumerations | إعدادات الحافة العليا. |
getBevelBottom() | IShapeBevel | Enumerations | إعدادات الحافة السفلية. |
getContourWidth() / setContourWidth(double) | double | قراءة/كتابة | عرض الخط الخارجي بالنقاط. |
getContourColor() | IColorFormat | Enumerations | لون الخط الخارجي. |
getExtrusionHeight() / setExtrusionHeight(double) | double | قراءة/كتابة | ارتفاع البثق بالنقاط. |
getExtrusionColor() | IColorFormat | Enumerations | لون البثق. |
getDepth() / setDepth(double) | double | قراءة/كتابة | عمق التأثير ثلاثي الأبعاد. |
getCamera() | ICamera | Enumerations | إعدادات الكاميرا. |
getLightRig() | ILightRig | Enumerations | إعدادات الإضاءة. |
getMaterial() / setMaterial(MaterialPresetType) | MaterialPresetType | قراءة/كتابة | إعداد مسبق للمواد (مات، بلاستيك، معدن، إلخ). |
أمثلة الاستخدام
تطبيق تأثير ثلاثي الأبعاد على شكل
import org.aspose.slides.foss.*;
Presentation prs = new Presentation();
IAutoShape shape = prs.getSlides().get(0).getShapes()
.addAutoShape(ShapeType.RECTANGLE, 50, 50, 200, 100);
IThreeDFormat threeD = shape.getThreeDFormat();
threeD.setDepth(10.0);
threeD.setExtrusionHeight(5.0);
threeD.setMaterial(MaterialPresetType.WARM_MATTE);
prs.save("3d-shape.pptx", SaveFormat.PPTX);قراءة خصائص ثلاثية الأبعاد
IThreeDFormat threeD = shape.getThreeDFormat();
System.out.println("Depth: " + threeD.getDepth());
System.out.println("Material: " + threeD.getMaterial());
IShapeBevel topBevel = threeD.getBevelTop();
ICamera camera = threeD.getCamera();
ILightRig light = threeD.getLightRig();