public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Shapes();
// Instantiate a Presentation class that represents the presentation file
using (Presentation presentation = new Presentation(dataDir + "HelloWorld.pptx"))
{
// Create a Appearance bound shape image
using (Bitmap bitmap = presentation.Slides[0].Shapes[0].GetThumbnail(ShapeThumbnailBounds.Appearance, 1, 1))
{
// Save the image to disk in PNG format
bitmap.Save(dataDir + "Shape_thumbnail_Bound_Shape_out.png", ImageFormat.Png);
}
}
}
}