ThreeDFormat — Aspose.Slides FOSS for Java API Reference

Example ThreeDFormat La clase representa propiedades de formato 3-D para una forma. Extiende PVIObject e implementa IThreeDFormat y IThreeDParamSource.

Example: org.aspose.slides.foss

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

Example

ExampleExampleExampleExample
getBevelTop()IShapeBevelExampleConfiguración del bisel superior.
getBevelBottom()IShapeBevelExampleConfiguración del bisel inferior.
getContourWidth() / setContourWidth(double)doubleLectura/EscrituraAncho del contorno en puntos.
getContourColor()IColorFormatExampleColor del contorno.
getExtrusionHeight() / setExtrusionHeight(double)doubleLectura/EscrituraAltura de extrusión en puntos.
getExtrusionColor()IColorFormatExampleColor de extrusión.
getDepth() / setDepth(double)doubleLeer/EscribirProfundidad del efecto 3-D.
getCamera()ICameraExampleConfiguración de la cámara.
getLightRig()ILightRigExampleConfiguración de iluminación.
getMaterial() / setMaterial(MaterialPresetType)MaterialPresetTypeLeer/EscribirPreajuste de material (mate, plástico, metal, etc.).

Ejemplos de uso

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

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

Ver también

 Español