BitmapImage
From url to file
底下的程式碼, 可以將網路上的圖片直接轉成Thumb並儲存在硬碟檔案中.
請注意, 不要使用 BitmapImage bmp=new BitmapImage(new Uri(n, UriKind.RelativeOrAbsolute))); 因這種方法還需等待下載時間完成後才能存檔. 需加入 bmp.DownloadCompleted += new EventHandler(Image_DownloadCompleted);
但因為下一張圖片立即執行, 致使上一張的DownloadCompleted通常不會發生, 非常難控制
