I have the following C# code which generates a thumbnail from a slide and saves it to disk:
Image img = slide.GetThumbnail(0.1f, 0.1f);string thumbPath = Path.Combine(thumbDirectory, thumbFilename);img.Save(thumbPath, ImageFormat.Gif);
This is working fine, but now, instead of setting the thumbnail to 1/10 of the size of the original, I would like to set it to a width of 200 px, maintaining the original proportions. How can I do this?
If I could get hold of the original height and width of the slide, and I would calculate the new dimensions myself, but I can’t seem to find this information…