Aspose.Slides.Examples.CSharp.Shapes.CreateSmartArtChildNoteThumbnail.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Shapes();

            // Instantiate Presentation class that represents the PPTX file 
            Presentation pres = new Presentation();

            // Add SmartArt 
            ISmartArt smart = pres.Slides[0].Shapes.AddSmartArt(10, 10, 400, 300, SmartArtLayoutType.BasicCycle);

            // Obtain the reference of a node by using its Index  
            ISmartArtNode node = smart.Nodes[1];

            // Get thumbnail
            Bitmap bmp = node.Shapes[0].GetThumbnail();

            // Save thumbnail
            bmp.Save(dataDir + "SmartArt_ChildNote_Thumbnail_out.jpeg", ImageFormat.Jpeg);
        }
    }
CreateSmartArtChildNoteThumbnail