Free Support Forum - aspose.com

SlideEx.GetThumbnail() parameters not valid

Hi ,

when im trying to generate a thumbnail of a slide im getting the error message saying “parameters not valid”

Snippet

pres = new PresentationEx(@“E:\demo.pptx”);
SlideEx sd = pres.Slides[0];
Bitmap map=sd.GetThumbnail(500, 300);
any idea why this is happening, and how to over come this ?

Dear Aneef,

According to your code snippet, slide.getThumbnail(500,300) means that you are trying to create an image that is scaled to 500 times in X-direction and 300 times in Y-direction. The created image will have resolution of about 720*500 x 576*300. You may need a memory space of more than 100+ GB. So, please try using scaling factors that are well in range, like scale factor up to 10 or more. Please use following code snippet.<?XML:NAMESPACE PREFIX = O />

slide.getThumbnail (1,1)

Thanks and Regards,

oh again its changed? i used the same code which i used in slides seems you have changed it

thanks