0
我在WPF窗口上加載大圖像以進行一些調整(如亮度和對比度),但當我嘗試加載大圖像(3000x2000或4000x3000)時,圖像會自動轉換爲較低分辨率(1024×600通常)將大圖像加載到圖像控件中
Microsoft.Win32.OpenFileDialog openFileDialog = new Microsoft.Win32.OpenFileDialog();
openFileDialog.ShowDialog();
BitmapImage bitmap = new BitmapImage(new Uri(openFileDialog.FileName));
imageResolution.Content = bitmap.Width + "x" + bitmap.Height;//label to see dimensions
myImage.Source = bitmap;//image
我能做些什麼讓我的圖像的原始分辨率在BitmapImage的對象?
難道您發佈'myImage'控制的XAML和它的容器? – Daniel