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();