Hi,
we are using the following code as part of our logic to create thumbnails of a slide:
static void Main(string[] args)
{
int width = 800;
int height = 600;
string presentationPath = @"D:\Temp\Dummy\Präsentation4.pptx";
using (IPresentation presentation = PresentationFactory.Instance.ReadPresentation(presentationPath))
{
ISlide firstSlide = presentation.Slides[0];
using (Bitmap bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb))
{
using (Graphics graphics = Graphics.FromImage(bitmap))
{
firstSlide.RenderToGraphics(false, graphics, width, height);
}
}
}
}
But using this code on the attached presentation results in windows memory usage of more than 3GB for a presentation of 50KB of size.
We are currently using Aspose 17.4.0.0.
Could you please take a look.
Thanks.
Best regards
Christopher
Präsentation4.zip (38.2 KB)