本文介绍了你好,每一个我都无法显示带延伸的图像* dcm(dicom)你能帮助我吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好每一个我都可以用扩展名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();

}



}
}

推荐答案



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文件。

这可能有所帮助: []


这篇关于你好,每一个我都无法显示带延伸的图像* dcm(dicom)你能帮助我吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 20:06