hello guys,
I'm opening a .bmp image created on a folder on a InkCanvas to draw on like below. And when i'm closing it i want the TempFile to be deleted. but when i try to delete it says the file is used by another process. is there anyway to do this? I'm using WPF C#. Please help me out.
Thanks you! :)
- img = new BitmapImage(new Uri(TempFile, UriKind.Relative));
- myImageBrush = new ImageBrush(img);
- myCanvas = new Canvas();
- myCanvas.Width = img.Width;
- myCanvas.Height = img.Height;
- myCanvas.Background = myImageBrush;
- cw.ImgPO.Height = img.Height;
- cw.ImgPO.Children.Add(myCanvas);
Amit GuptaPosted Jan 13, 2018, 6:48 AM
Lahiru MahagamagePosted Jan 13, 2018, 12:03 PM
Lahiru MahagamagePosted Jan 12, 2018, 11:56 PM
@Amit Gupta
Amit GuptaPosted Jan 12, 2018, 11:37 AM
Lahiru MahagamagePosted Jan 12, 2018, 5:06 AM
Laxmidhar SahooPosted Jan 12, 2018, 4:30 AM