ThreeDFormat — Aspose.Slides FOSS for Java API Reference
Enumerations ThreeDFormat class repräsentiert 3‑D‑Formatierungseigenschaften für eine Form. Sie erweitert PVIObject und implementiert IThreeDFormat und 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 | Obere Fasen-Einstellungen. |
getBevelBottom() | IShapeBevel | Enumerations | Untere Fasen-Einstellungen. |
getContourWidth() / setContourWidth(double) | double | Lesen/Schreiben | Konturbreite in Punkten. |
getContourColor() | IColorFormat | Enumerations | Konturfarbe. |
getExtrusionHeight() / setExtrusionHeight(double) | double | Lesen/Schreiben | Extrusionshöhe in Punkten. |
getExtrusionColor() | IColorFormat | Enumerations | Extrusionsfarbe. |
getDepth() / setDepth(double) | double | Lesen/Schreiben | Tiefe des 3‑D‑Effekts. |
getCamera() | ICamera | Enumerations | Kameraeinstellungen. |
getLightRig() | ILightRig | Enumerations | Beleuchtungseinstellungen. |
getMaterial() / setMaterial(MaterialPresetType) | MaterialPresetType | Lesen/Schreiben | Material‑Voreinstellung (matt, Kunststoff, Metall usw.). |
Anwendungsbeispiele
3‑D‑Effekt auf ein Shape anwenden
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);3‑D‑Eigenschaften lesen
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();