ThreeDFormat — Aspose.Slides FOSS for Java API Reference

Enumerations ThreeDFormat class repræsenterer 3-D formaterings‑egenskaber for en form. Den udvider PVIObject og implementerer IThreeDFormat og IThreeDParamSource.

Enumerations: org.aspose.slides.foss

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

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getBevelTop()IShapeBevelEnumerationsTop bevel-indstillinger.
getBevelBottom()IShapeBevelEnumerationsBottom bevel-indstillinger.
getContourWidth() / setContourWidth(double)doubleLæse/skrivKonturbredde i punkter.
getContourColor()IColorFormatEnumerationsKonturfarve.
getExtrusionHeight() / setExtrusionHeight(double)doubleLæse/skrivEkstrusionshøjde i punkter.
getExtrusionColor()IColorFormatEnumerationsEkstrusionsfarve.
getDepth() / setDepth(double)doubleLæse/skrivDybde af 3-D-effekten.
getCamera()ICameraEnumerationsKameraindstillinger.
getLightRig()ILightRigEnumerationsBelysningsindstillinger.
getMaterial() / setMaterial(MaterialPresetType)MaterialPresetTypeLæse/skrivMaterialforudindstilling (mat, plast, metal osv.).

Brugseksempler

Anvend 3‑D‑effekt på en form

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

Læs 3‑D‑egenskaber

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

Se også

 Dansk