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, IThreeDParamSourceEnumerations
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
getBevelTop() | IShapeBevel | Enumerations | Configuració del bisell superior. |
getBevelBottom() | IShapeBevel | Enumerations | Configuració del bisell inferior. |
getContourWidth() / setContourWidth(double) | double | Lectura/Escriptura | Amplada del contorn en punts. |
getContourColor() | IColorFormat | Enumerations | Color del contorn. |
getExtrusionHeight() / setExtrusionHeight(double) | double | Lectura/Escriptura | Alçada d’extrusió en punts. |
getExtrusionColor() | IColorFormat | Enumerations | Color d’extrusió. |
getDepth() / setDepth(double) | double | Lectura/Escriptura | Profunditat de l’efecte 3-D. |
getCamera() | ICamera | Enumerations | Configuració de la càmera. |
getLightRig() | ILightRig | Enumerations | Configuració d’il·luminació. |
getMaterial() / setMaterial(MaterialPresetType) | MaterialPresetType | Lectura/Escriptura | Predefinició 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();