I am creating an BitmapImage from an existing image using:
BitmapImage bmp = new BitmapImage();
bmp.BeginInit();
bmp.UriSource = new Uri(jpegPath, UriKind.Relative);
bmp.EndInit();
After I have done this I want to delete the image from my hard drive, but it is locked.
Is there a way I can unlock it so it can be removed?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…