private Image GetThumbnail(string path, int width, int height) {
Image image = Image.FromFile(path);
Image.GetThumbnailImageAbort myCallback = new Image.GetThumbnailImageAbort(ThumbnailCallback);
Image thumbnail = image.GetThumbnailImage(width, height, myCallback, IntPtr.Zero);
image.Dispose();
return thumbnail; }
public bool ThumbnailCallback() {
return false;
}