ThreeDFormat — Aspose.Slides FOSS for Java API Reference

Enumerations ThreeDFormat class représente les propriétés de mise en forme 3-D d’une forme. Elle étend PVIObject et implémente IThreeDFormat et IThreeDParamSource.

Enumerations: org.aspose.slides.foss

import org.aspose.slides.foss.*;
public class ThreeDFormat extends PVIObject implements IThreeDFormat, IThreeDParamSource

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getBevelTop()IShapeBevelEnumerationsParamètres du biseau supérieur.
getBevelBottom()IShapeBevelEnumerationsParamètres du biseau inférieur.
getContourWidth() / setContourWidth(double)doubleLecture/ÉcritureLargeur du contour en points.
getContourColor()IColorFormatEnumerationsCouleur du contour.
getExtrusionHeight() / setExtrusionHeight(double)doubleLecture/ÉcritureHauteur d’extrusion en points.
getExtrusionColor()IColorFormatEnumerationsCouleur d’extrusion.
getDepth() / setDepth(double)doubleLire/ÉcrireProfondeur de l’effet 3-D.
getCamera()ICameraEnumerationsParamètres de la caméra.
getLightRig()ILightRigEnumerationsParamètres d’éclairage.
getMaterial() / setMaterial(MaterialPresetType)MaterialPresetTypeLire/ÉcrirePréréglage de matériau (mat, plastique, métal, etc.).

Exemples d’utilisation

Appliquer l’effet 3-D à une forme

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

Lire les propriétés 3-D

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

Voir aussi

 Français