ThreeDFormat

ThreeDFormat — Aspose.Slides FOSS for .NET API Reference

FillFormat ThreeDFormat kelas mengawal kesan visual 3-D pada bentuk, termasuk bevels, extrusion depth, contour, kedudukan kamera, pencahayaan, dan material. Akses ia melalui Shape.ThreeDFormat.

FillFormat: Aspose.Slides.Foss (net9.0)

using Aspose.Slides.Foss;
public class ThreeDFormat : PVIObject, IThreeDFormat

FillFormat

PVIObjectThreeDFormat


FillFormat

FillFormatFillFormatFillFormatFillFormat
BevelTopIShapeBevelFillFormatTetapan bevel muka atas.
BevelBottomIShapeBevelFillFormatTetapan bevel muka bawah.
ExtrusionHeightfloatFillFormatKedalaman ekstrusi.
ExtrusionColorIColorFormatFillFormatWarna ekstrusi.
ContourWidthfloatFillFormatLebar kontur.
ContourColorIColorFormatFillFormatWarna kontur.
DepthfloatFillFormat3-D depth value.
CameraICameraFillFormatTetapan kamera.
LightRigILightRigFillFormatTetapan rig pencahayaan.
MaterialMaterialPresetTypeFillFormatPraset bahan permukaan.

Kelas Berkaitan

ShapeBevel

public class ShapeBevel : PVIObject, IShapeBevel
FillFormatFillFormatFillFormatFillFormat
BevelTypeBevelPresetTypeFillFormatJenis praset bevel.
WidthfloatFillFormatLebar bevel.
HeightfloatFillFormatTinggi bevel.

FillFormat

public class Camera : PVIObject, ICamera
FillFormatFillFormatFillFormatFillFormat
CameraTypeCameraPresetTypeFillFormatJenis praset kamera.
FieldOfViewAnglefloatFillFormatSudut bidang pandangan.
ZoomfloatFillFormatTahap zum.
FillFormatFillFormat
SetRotation(float latitude, float longitude, float revolution)Tetapkan sudut putaran kamera.
GetRotation()Dapatkan sudut putaran semasa.

LightRig

public class LightRig : PVIObject, ILightRig
FillFormatFillFormatFillFormatFillFormat
DirectionLightingDirectionFillFormatArah cahaya.
LightTypeLightRigPresetTypeFillFormatPreset rig cahaya.
FillFormatFillFormat
SetRotation(float latitude, float longitude, float revolution)Tetapkan putaran cahaya.
GetRotation()Dapatkan putaran semasa.

Contoh Penggunaan

Baca Format 3-D

using Aspose.Slides.Foss;

using var prs = new Presentation("deck.pptx");
var shape = prs.Slides[0].Shapes[0];
var td = shape.ThreeDFormat;

Console.WriteLine($"Extrusion height: {td.ExtrusionHeight}");
Console.WriteLine($"Material: {td.Material}");
Console.WriteLine($"Camera: {td.Camera.CameraType}");
Console.WriteLine($"Bevel top type: {td.BevelTop.BevelType}");

Lihat Juga

 Bahasa Melayu