ThreeDFormat — Aspose.Slides FOSS for Java API Reference

Enumerations ThreeDFormat třída představuje 3‑D formátovací vlastnosti pro tvar. Rozšiřuje PVIObject a implementuje IThreeDFormat a IThreeDParamSource.

Enumerations: org.aspose.slides.foss

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

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getBevelTop()IShapeBevelEnumerationsNastavení horního zkosení.
getBevelBottom()IShapeBevelEnumerationsNastavení spodního zkosení.
getContourWidth() / setContourWidth(double)doubleČíst/ZapisovatŠířka obrysu v bodech.
getContourColor()IColorFormatEnumerationsBarva obrysu.
getExtrusionHeight() / setExtrusionHeight(double)doubleČíst/ZapisovatVýška extruze v bodech.
getExtrusionColor()IColorFormatEnumerationsBarva extruze.
getDepth() / setDepth(double)doubleČíst/ZapisovatHloubka 3‑D efektu.
getCamera()ICameraEnumerationsNastavení kamery.
getLightRig()ILightRigEnumerationsNastavení osvětlení.
getMaterial() / setMaterial(MaterialPresetType)MaterialPresetTypeČíst/ZapisovatPředvolba materiálu (matný, plast, kov, atd.).

Příklady použití

Aplikovat 3‑D efekt na tvar

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

Načíst 3‑D vlastnosti

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

Viz také

 Čeština