你好,每一个我都无法显示带延伸的图像* dcm(dicom)你能帮助我吗? [英] Hello every one I can't display image with extension *dcm(dicom) can you help me?
问题描述
你好每一个我都可以用扩展名jpg显示图像但是我无法显示带扩展名的图像* dcm(dicom)你可以帮我吗???
我尝试了什么:
OpenFileDialog ofd = new OpenFileDialog();
private void button1_Click(object sender ,EventArgs e)
{
if(ofd.ShowDialog()== DialogResult.OK)
{
textBox1.Text = ofd.FileName;
pictureBox1.Image = Image.FromFile(ofd.FileName);
}
ofd.Dispose();
}
}
}
hello every one I can display Image with extension jpg but I can't display image with extension *dcm(dicom) can you help me???
What I have tried:
OpenFileDialog ofd = new OpenFileDialog();
private void button1_Click(object sender, EventArgs e)
{
if (ofd.ShowDialog() == DialogResult.OK)
{
textBox1.Text = ofd.FileName;
pictureBox1.Image = Image.FromFile(ofd.FileName);
}
ofd.Dispose();
}
}
}
推荐答案
搜索CodeProject如下: 搜索 - CodeProject [ ^ ]
Search CodeProject like this: Search - CodeProject[^]
您可以参考以下链接
DICOM Image Viewer [ ^ ]
You can refer given below links
DICOM Image Viewer[^]
查看文档:
Image.FromFile Method(String)(System.Drawing) [ ^ ]
它清楚地说:
Look at the documentation:
Image.FromFile Method (String) (System.Drawing)[^]
It clearly says:
Managed GDI+ has built-in encoders and decoders that support the following file types:
BMP
GIF
JPEG
PNG
TIFF
...
If the file does not have a valid image format or if GDI+ does not support the pixel format of the file, this method throws an OutOfMemoryException exception.
Image类不支持DICOM文件。
这可能有所帮助: DICOM Image Viewer [ ^ ]
这篇关于你好,每一个我都无法显示带延伸的图像* dcm(dicom)你能帮助我吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!