我在 WPF 窗口上加载大图像以进行一些调整(如亮度和对比度),但是当我尝试加载大图像(3000x2000 或 4000x3000)时,我的图像会自动转换为较低的分辨率(通常为 1024x600)
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 对象中保持图像的原始分辨率?