ThreeDFormat — Aspose.Slides FOSS for Java API Reference

Enumerations ThreeDFormat La classe representa propietats de formatació 3-D per a una forma. Amplia PVIObject i implementa IThreeDFormat i IThreeDParamSource.

Enumerations: org.aspose.slides.foss

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

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getBevelTop()IShapeBevelEnumerationsConfiguració del bisell superior.
getBevelBottom()IShapeBevelEnumerationsConfiguració del bisell inferior.
getContourWidth() / setContourWidth(double)doubleLectura/EscripturaAmplada del contorn en punts.
getContourColor()IColorFormatEnumerationsColor del contorn.
getExtrusionHeight() / setExtrusionHeight(double)doubleLectura/EscripturaAlçada d’extrusió en punts.
getExtrusionColor()IColorFormatEnumerationsColor d’extrusió.
getDepth() / setDepth(double)doubleLectura/EscripturaProfunditat de l’efecte 3-D.
getCamera()ICameraEnumerationsConfiguració de la càmera.
getLightRig()ILightRigEnumerationsConfiguració d’il·luminació.
getMaterial() / setMaterial(MaterialPresetType)MaterialPresetTypeLectura/EscripturaPredefinició de material (mate, plàstic, metall, etc.).

Exemples d’ús

Aplica l’efecte 3-D a una forma

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

Llegeix les propietats 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();

Vegeu també

 Català