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, IThreeDParamSource

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getBevelTop()IShapeBevelEnumerationsإعدادات الحافة العليا.
getBevelBottom()IShapeBevelEnumerationsإعدادات الحافة السفلية.
getContourWidth() / setContourWidth(double)doubleقراءة/كتابةعرض الخط الخارجي بالنقاط.
getContourColor()IColorFormatEnumerationsلون الخط الخارجي.
getExtrusionHeight() / setExtrusionHeight(double)doubleقراءة/كتابةارتفاع البثق بالنقاط.
getExtrusionColor()IColorFormatEnumerationsلون البثق.
getDepth() / setDepth(double)doubleقراءة/كتابةعمق التأثير ثلاثي الأبعاد.
getCamera()ICameraEnumerationsإعدادات الكاميرا.
getLightRig()ILightRigEnumerationsإعدادات الإضاءة.
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();

انظر أيضًا

 العربية