Free Support Forum -

Viewing slides on a form in full screen

I can view a PPT on a windows form by doing the following:

Presentation pres = new Presentation(“TEMP.ppt”);

foreach (Slide temp in pres.Slides)
Image imgFull = temp.GetThumbnail(1f, 1f);
Size imgSize = imgFull.Size;
//pictureBox1.Size = imgSize;

pictureBox1.Image = imgFull;

Now my problem is that I want to fill the whole form with the PPT images. Is there any way I can achieve this with your product?


Thanks for your interest in Aspose.Slides.

Well, the height and width of the slide image can be set by defining the System.Drawing.Size structure while rendering the slide to an System.Drawing.Image object using Slide.GetThumbnail(Size) method. In a windows form application, it can be set using the code as under:

System.Drawing.Size sz = new Size(this.Width, this.Height);

Image img = sld.GetThumbnail(sz);

Hope this will be helpful.

Thanks and Best Regards