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, IThreeDParamSource

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getBevelTop()IShapeBevelEnumerationsΡυθμίσεις επάνω λοξότμησης.
getBevelBottom()IShapeBevelEnumerationsΡυθμίσεις κάτω λοξότμησης.
getContourWidth() / setContourWidth(double)doubleΑνάγνωση/ΕγγραφήΠλάτος περιγράμματος σε σημεία.
getContourColor()IColorFormatEnumerationsΧρώμα περιγράμματος.
getExtrusionHeight() / setExtrusionHeight(double)doubleΑνάγνωση/ΕγγραφήΎψος εξώθησης σε σημεία.
getExtrusionColor()IColorFormatEnumerationsΧρώμα εξώθησης.
getDepth() / setDepth(double)doubleΑνάγνωση/ΕγγραφήΒάθος του 3-D εφέ.
getCamera()ICameraEnumerationsΡυθμίσεις κάμερας.
getLightRig()ILightRigEnumerationsΡυθμίσεις φωτισμού.
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();

Δείτε επίσης

 Ελληνικά