we are using the following code to create thumbnails of slides.
int width = 800;
int height = 450;
using (IPresentation presentation = PresentationFactory.Instance.ReadPresentation(presentationStream))
ISlide firstSlide = presentation.Slides;
using (Bitmap bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb))
using (Graphics graphics = Graphics.FromImage(bitmap))
firstSlide.RenderToGraphics(false, graphics, width, height);
using (MemoryStream memoryStream = new MemoryStream())
But the thumbnail for the attached presentation looks a little different from the slide, when the presentation is opened in Office 2016. Could you please help us to solve the problem? Thanks a lot!
Aspose Thumbnail.zip (22.7 KB)