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

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getBevelTop()IShapeBevelEnumerationsObere Fasen-Einstellungen.
getBevelBottom()IShapeBevelEnumerationsUntere Fasen-Einstellungen.
getContourWidth() / setContourWidth(double)doubleLesen/SchreibenKonturbreite in Punkten.
getContourColor()IColorFormatEnumerationsKonturfarbe.
getExtrusionHeight() / setExtrusionHeight(double)doubleLesen/SchreibenExtrusionshöhe in Punkten.
getExtrusionColor()IColorFormatEnumerationsExtrusionsfarbe.
getDepth() / setDepth(double)doubleLesen/SchreibenTiefe des 3‑D‑Effekts.
getCamera()ICameraEnumerationsKameraeinstellungen.
getLightRig()ILightRigEnumerationsBeleuchtungseinstellungen.
getMaterial() / setMaterial(MaterialPresetType)MaterialPresetTypeLesen/SchreibenMaterial‑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();

Siehe auch

 Deutsch