Dear Aspose peoples,
I'm new in Aspose Slides and I need create presentation from some image files.
(In 1 slide is 1 image object and scale Image object to slide size (scale to fit))
Thank you,
Roman
Dear Aspose peoples,
I'm new in Aspose Slides and I need create presentation from some image files.
(In 1 slide is 1 image object and scale Image object to slide size (scale to fit))
Thank you,
Roman
Hi Roman,
public static void AddPicFrame(){//Instantiate PrseetationEx class that represents the PPTXusing (PresentationEx srcPres = new PresentationEx()){//Get the first slideSlideEx sld = srcPres.Slides[0];//Instantiate the ImageEx classSystem.Drawing.Image img = (System.Drawing.Image)new Bitmap(“d:\pptx\asp.jpg”);ImageEx imgx = srcPres.Images.AddImage(img);//Add Picture Frame with height and width equivalent of Picturesld.Shapes.AddPictureFrame(ShapeTypeEx.Rectangle, 0, 0, srcPres.SlideSize.Size.Width, srcPres.SlideSize.Size.Height, imgx);//Write the PPTX file to disksrcPres.Write(“d:\pptx\RectPicFrame.pptx”);}}