Apply 3D Effects in PowerPoint PPT using C#

Apply 3D Effects in PowerPoint using C#

3D effects in PowerPoint presentations make the content more attractive. Using 3D text or shapes, you can enhance the interactivity and catch the attention of the audience. While working on the automation of PowerPoint from within .NET applications, you may need to add 3D effects to the presentations. To accomplish that, this article covers how to apply the 3D effects in PowerPoint PPT in C#.

.NET API to Apply 3D Effects in PowerPoint

Aspose.Slides for .NET is an amazing API that provides a range of features to implement PowerPoint automation. Using the API, you can create and manipulate presentations seamlessly. We will use this API to apply 3D effects in the PowerPoint presentations. You can either download API’s DLL or install it using NuGet.

PM> Install-Package Aspose.Slides.NET

Create a 3D Text in PowerPoint in C#

The following are the steps to create a 3D text fragment in PowerPoint PPT using C#.

The following code sample shows how to create a 3D text in PowerPoint in C#.

The following screenshot shows output of the code sample above.

Create a 3D Text in PowerPoint in C#

Create a 3D Shape in PowerPoint in C#

Similar to text, you can apply 3D effects to the shapes in PowerPoint presentations. The following are the steps to create a 3D shape in PowerPoint in C#.

The following code sample shows how to apply 3D effects to shapes in PowerPoint using C#.

The following is the 3D shape that we get after executing this code.

Create a 3D Shape in PowerPoint in C#

Create Gradient for 3D Shapes

You can also apply gradient effects to the shapes following the steps below.

The following code sample shows how to apply gradient effects to shapes in PowerPoint.

The following is the 3D shape after applying the gradient effect.

Create Gradient for 3D Shapes in PowerPoint

Apply 3D Effects to an Image in PowerPoint in C#

Aspose.Slides for .NET also allows you to apply 3D effects to an image. The following are the steps to perform this operation in C#.

The following are the steps to apply 3D effects to an image in PPT using C#.

The following is the resultant image that we get after applying 3D effects.

Apply 3D Effects to an Image in PowerPoint in C#

Get a Free License

You can get a free temporary license to use Aspose.Slides for .NET without evaluation limitations.

Conclusion

In this article, you have learned how to apply 3D effects in PowerPoint presentations using C#. We have covered how to create 3D text or shapes and apply 3D effects to images in PPT or PPTX presentations. In case you want to explore more about Aspose.Slides for .NET, you can visit the documentation. Also, you can post your queries to our forum.

See Also