Searching for a way to extract Shell Thumbnails for a windows application, I ran into this post and its very useful answer by AMissico: C# get thumbnail from file via windows api The sample project that solves the problem posted above can be downloaded here: http://cid-7178d2c79ba0a7e3.office.live.com/self.aspx/.Public/ShellThumbnail.zip (I hope the original poster won't mind ...)
I've been able to modify the code posted by AMissico to keep the original aspect ratio of the images, but what I would like to do is offer a crop option, and mention the top-left point to start cropping from.
The sample project posted by AMissico uses the IExtractImage interface, with methods GetLocation and Extract. The GetLocation method accepts a size parameter, but I haven't found any way to add a starting point for the cropped image to it.
I would appreciate any help in doing this. Thanks!