ThreeDFormat

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

ראה גם

 עברית