<p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;">private void button2_Click(object sender, EventArgs e)</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> {</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> //리스트박스의 이름 가져오기</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> String fname = (String)listBox1.SelectedItem;</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> String path = openFileDialog1.InitialDirectory;</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> if (listBox1.SelectedItem == null)</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> {</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> return;</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> }</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> if (pictureBox1.Image != null)</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> {</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> pictureBox1.Refresh();</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> }</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"><br></p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> //사이즈 맞추기</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"><br></p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> //openDicom.Image.PixelData dcm = new openDicom.Image.PixelData();</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"><br></p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"><br></p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> //이미지 표현하기</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> pictureBox1.Image = Image.FromFile(path + fname);</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> pictureBox1.Show();</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"><br></p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> }</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;"> </p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;">//------------------------------------------------</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;">DICOM 파일을 PictureBox에 띄우고 싶어서 여러 라이브러리 다운받아 적용도 해보고 하고 있는데</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;">리스트 박스에 파일 이름 만 따서 목록 추가도 했고 그 목록을 클릭하고 버튼을 눌렀을 때</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;">화면을 띄우려고 하는데 어디서 발생한지 모르겠는데 Out of Memory Exception 이 발생해서 </p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;">찾지를 못하겠습니다 ㅠㅠ 부디 시간 조금만 투자해주시길 부탁드립니다 ㅠㅠ</p> <p style="margin-bottom:10px;color:#333333;font-family:gulim, Dotum, Helvetica, AppleGothic, sans-serif;">개발 환경은 WinfForm, x64, VB2019,.NET Framework 4.7.2 입니다.</p>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.