BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//Load the existing PowerPoint Presentation
using (IPresentation pptxDoc = Presentation.Open("GettingStarted.pptx"))
{
//Load each slide in PowerPoint
foreach (ISlide slide in pptxDoc.Slides)
{
//Conver the PowerPoint slide to image
Image image = slide.ConvertToImage(Syncfusion.Drawing.ImageType.Bitmap);
//Set the size for image
Size size = new Size(200, 200);
//Create new Bitmap image with spcified size for converted image.
Bitmap bitmap = new Bitmap(image, size);
//Save the image in specified location
bitmap.Save(ResolveApplicationOutputPath("/") + "image" + Guid.NewGuid().ToString() + ".jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
}
} |