C
C#13mo ago
DayKnight

Cannot read sudden images

I am trying to copy an image and then use that copied version of the image. BitmapImage gives an exception saying "Cannot find image path"
BitmapImage image = new BitmapImage(new Uri(fullImagePath, UriKind.Absolute));
BitmapImage image = new BitmapImage(new Uri(fullImagePath, UriKind.Absolute));
Even tho a lot of other images works, only specific images does not work, can it be because of the size? I am using a filter, but that should not be making any errors
Microsoft.Win32.OpenFileDialog openFileDialog = new Microsoft.Win32.OpenFileDialog();
openFileDialog.Filter = "Image Files (*.jpg; *.jpeg; *.gif; *.bmp; *.png)|*.jpg; *.jpeg; *.gif; *.bmp; *.png";
Microsoft.Win32.OpenFileDialog openFileDialog = new Microsoft.Win32.OpenFileDialog();
openFileDialog.Filter = "Image Files (*.jpg; *.jpeg; *.gif; *.bmp; *.png)|*.jpg; *.jpeg; *.gif; *.bmp; *.png";
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server