ThreeDFormat — Aspose.Slides FOSS for Java API Reference

Enumerations ThreeDFormat class представлява 3-D свойства за форматиране на форма. Той разширява PVIObject и имплементира 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‑D ефект към форма

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

Вижте също

 Български