<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.emailstyle17
        {font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {font-family:Arial;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1 style='layout-grid:15.6pt'>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>Hi all,</span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'> My VTK environment is win2000+MSVC6.</span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>The following code is want to display BMP file:</span></font></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><font
size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>
</span></font></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><font
size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>
vtkBMPReader* reader = vtkBMPReader::New();</span></font></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><font
size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>
reader->SetFileName(BMP file path);</span></font></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><font
size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>
vtkImageViewer* viewer = vtkImageViewer::New();</span></font></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><font
size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>
viewer->SetInput(reader->GetOutput());</span></font></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><font
size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>
viewer->SetSize(256,256);</span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'> viewer->Render();</span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>but the image is so dark. Can somebody tell me the
reason and how to solve it?</span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.0pt'>Sincerely, <br>
Zhao Yongqiang<br>
Dept. of Computer Science & Engineering<br>
Shanghai JiaoTong University<br>
Shanghai, China<br>
<a href="mailto:zhao-yq@cs.sjtu.edu.cn">zhao-yq@cs.sjtu.edu.cn</a></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.0pt'> </span></font></p>
</div>
</body>
</html>