Convert JPG to PPTX in C#
Powerful cross-platform .NET API for converting JPG to PPTX using C# code on NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms
Convert JPG to PPTX using Aspose.Slides
Aspose.Slides for .NET is a powerful .NET library used to create, convert, and manipulate PowerPoint presentations, PDFs, HTML docs, and other files. When you convert JPG to PPTX, you are essentially creating a PowerPoint presentation that contains slides based on JPG images.
Convert JPG to PPTX in C#
Using Aspose.Slides for .NET , you can convert JPG image to PowerPoint presentation with just a few lines of code:
C# code for converting JPG to PPTX
using (Presentation pres = new Presentation())
{
IPPImage image = pres.Images.AddImage(File.ReadAllBytes("image.jpg"));
pres.Slides[0].Shapes.AddPictureFrame(ShapeType.Rectangle, 0, 0, 720, 540, image);
pres.Save("Presentation.pptx", SaveFormat.Pptx);
}
How to convert JPG to PPTX in C#
Install Aspose.Slides for .NET. See Installation .
Add the library as a reference in your project.
Create an instance of the Presentation class.
Load the JPG image you want to convert to PPTX.
Save the resulting file as a PPTX presentation.
Free Online Converter
Other Supported PowerPoint Conversions
You can also convert files in other formats to PowerPoint