public static void Run() { //ExStart:GetLightRigEffectiveData // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Shapes(); using (Presentation pres = new Presentation(dataDir + "Presentation1.pptx")) { IThreeDFormatEffectiveData threeDEffectiveData = pres.Slides[0].Shapes[0].ThreeDFormat.GetEffective(); Console.WriteLine("= Effective light rig properties ="); Console.WriteLine("Type: " + threeDEffectiveData.LightRig.LightType); Console.WriteLine("Direction: " + threeDEffectiveData.LightRig.Direction); } //ExEnd:GetLightRigEffectiveData }
public static void Run() { //ExStart:GetCameraEffectiveData // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Shapes(); using (Presentation pres = new Presentation(dataDir + "Presentation1.pptx")) { IThreeDFormatEffectiveData threeDEffectiveData = pres.Slides[0].Shapes[0].ThreeDFormat.GetEffective(); Console.WriteLine("= Effective camera properties ="); Console.WriteLine("Type: " + threeDEffectiveData.Camera.CameraType); Console.WriteLine("Field of view: " + threeDEffectiveData.Camera.FieldOfViewAngle); Console.WriteLine("Zoom: " + threeDEffectiveData.Camera.Zoom); } //ExEnd:GetCameraEffectiveData }
public static void Run() { //ExStart:GetShapeBevelEffectiveData // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Shapes(); using (Presentation pres = new Presentation(dataDir + "Presentation1.pptx")) { IThreeDFormatEffectiveData threeDEffectiveData = pres.Slides[0].Shapes[0].ThreeDFormat.GetEffective(); Console.WriteLine("= Effective shape's top face relief properties ="); Console.WriteLine("Type: " + threeDEffectiveData.BevelTop.BevelType); Console.WriteLine("Width: " + threeDEffectiveData.BevelTop.Width); Console.WriteLine("Height: " + threeDEffectiveData.BevelTop.Height); } //ExEnd:GetShapeBevelEffectiveData }