@@ -393,18 +393,31 @@ static void Main()
393
393
//presentation.SaveAllNotesToTextFile("D:\\AsposeSampleData\\Notes.txt");
394
394
presentation.Save();*/
395
395
396
- /* Presentation presentation = Presentation.Open("D:\\AsposeSampleData\\draw.pptx");
396
+ /* Presentation presentation = Presentation.Open("D:\\AsposeSampleData\\draw.pptx");
397
+ Slide slide = new Slide();
398
+
399
+ Triangle triangle = new Triangle();
400
+ triangle.Width = 500.0;
401
+ triangle.Height =300.0;
402
+ triangle.X = triangle.Width / 2;
403
+ triangle.Y = triangle.Height / 2;
404
+ triangle.BackgroundColor = "5f7200";
405
+ slide.DrawTriangle(triangle);
406
+ presentation.AppendSlide(slide);
407
+ presentation.Save();*/
408
+
409
+ Presentation presentation = Presentation . Open ( "D:\\ AsposeSampleData\\ draw.pptx" ) ;
397
410
Slide slide = new Slide ( ) ;
398
411
399
- Circle circle = new Circle ();
400
- circle .Width = 500.0;
401
- circle .Height =300.0;
402
- circle .X = circle .Width / 2;
403
- circle .Y = circle .Height / 2;
404
- circle .BackgroundColor = "5f7200";
405
- slide.DrawCircle(circle );
412
+ Diamond diamond = new Diamond ( ) ;
413
+ diamond . Width = 500.0 ;
414
+ diamond . Height = 300.0 ;
415
+ diamond . X = diamond . Width / 2 ;
416
+ diamond . Y = diamond . Height / 2 ;
417
+ diamond . BackgroundColor = "5f7200" ;
418
+ slide . DrawDiamond ( diamond ) ;
406
419
presentation . AppendSlide ( slide ) ;
407
- presentation.Save();*/
420
+ presentation . Save ( ) ;
408
421
409
422
/*Presentation presentation = Presentation.Open("D:\\AsposeSampleData\\draw.pptx");
410
423
Slide slide = presentation.GetSlides()[2];
0 commit comments