- 400 名前:デフォルトの名無しさん mailto:sage [2009/03/01(日) 20:07:14 ]
- >>399
string path = @"C:\test.jpg"; BitmapImage bmp = new BitmapImage(); bmp.BeginInit(); bmp.UriSource = new Uri(path); bmp.CacheOption = BitmapCacheOption.OnLoad; bmp.EndInit(); image1.Source = bmp; System.IO.File.Delete(path); これで動いたよ > 削除処理は次のように書きました。 > private void button1_Click(object sender, RoutedEventArgs e) > { > System.IO.File.Delete(imgFile); > } これのパスを間違えてるとかじゃね
|

|