ThreeDFormat — Aspose.Slides FOSS for Java API Reference
Enumerations ThreeDFormat class αντιπροσωπεύει ιδιότητες μορφοποίησης 3-D για ένα σχήμα. Αυτή extends PVIObject και implements IThreeDFormat και 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 | Ρυθμίσεις επάνω λοξότμησης. |
getBevelBottom() | IShapeBevel | Enumerations | Ρυθμίσεις κάτω λοξότμησης. |
getContourWidth() / setContourWidth(double) | double | Ανάγνωση/Εγγραφή | Πλάτος περιγράμματος σε σημεία. |
getContourColor() | IColorFormat | Enumerations | Χρώμα περιγράμματος. |
getExtrusionHeight() / setExtrusionHeight(double) | double | Ανάγνωση/Εγγραφή | Ύψος εξώθησης σε σημεία. |
getExtrusionColor() | IColorFormat | Enumerations | Χρώμα εξώθησης. |
getDepth() / setDepth(double) | double | Ανάγνωση/Εγγραφή | Βάθος του 3-D εφέ. |
getCamera() | ICamera | Enumerations | Ρυθμίσεις κάμερας. |
getLightRig() | ILightRig | Enumerations | Ρυθμίσεις φωτισμού. |
getMaterial() / setMaterial(MaterialPresetType) | MaterialPresetType | Ανάγνωση/Εγγραφή | Προεπιλογή υλικού (ματ, πλαστικό, μέταλλο, κ.λπ.). |
Παραδείγματα Χρήσης
Εφαρμογή 3‑Δ εφέ σε σχήμα
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‑Δ
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();