How to Implement the GetThumbnail Using Aspose.Slides.NET6.CrossPlatform?

In Windows, we can use the following code:

using var doc = new Aspose.Slides.Presentation(source, loadOption);
var bpm = doc.Slides[0].GetThumbnail(doc.SlideSize.Size.ToSize() / 10);
bpm.Save(target, ImageFormat.Png);

However, in Linux, System.Drawing is not supported. Therefore, we use the Aspose.Slides.NET6.CrossPlatform package, version 23.11.0. I am uncertain about how to implement GetThumbnail , as the code doc.Slides[0].GetThumbnail(doc.SlideSize.Size.ToSize() / 10); still relies on System.Drawing and returns a Bitmap object."

@ian0524,
Thank you for posting the question.

Cross-platform versions of Aspose.Slides for .NET use our versions of classes similar to those in the System.Drawing namespace and contained in Aspose.Slides assembly.

You can check this as follows:

Console.WriteLine(bpm.GetType().Assembly.GetName());

Example output:

Aspose.Slides, Version=23.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56