222.jpg (153.1 KB)
I follow the demo:
foreach (ISlide sld in pres.Slides)
{
string filePath = Path.Combine(fileDirect, “Image” + FormatIntToLengthFour(i) + “.jpg”);
float ScaleX = (float)(1.0 / pres.SlideSize.Size.Width) * imageWidth;
float ScaleY = (float)(1.0 / pres.SlideSize.Size.Height) * imageHeight;
Bitmap bmp = sld.GetThumbnail(ScaleX, ScaleY);
bmp.Save(filePath, System.Drawing.Imaging.ImageFormat.Jpeg);
}
it doesn’t work well.111.jpg (147.9 KB)