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?