[vtkusers] why the displayed image is dark?
zhao yong qiang
zhao-yq at cs.sjtu.edu.cn
Mon Mar 24 21:29:27 EST 2003
Hi all,
My VTK environment is win2000+MSVC6.
The following code is want to display BMP file:
vtkBMPReader* reader = vtkBMPReader::New();
reader->SetFileName(BMP file path);
vtkImageViewer* viewer = vtkImageViewer::New();
viewer->SetInput(reader->GetOutput());
viewer->SetSize(256,256);
viewer->Render();
but the image is so dark. Can somebody tell me the reason and how to
solve it?
Sincerely,
Zhao Yongqiang
Dept. of Computer Science & Engineering
Shanghai JiaoTong University
Shanghai, China
zhao-yq at cs.sjtu.edu.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030325/c8b2630e/attachment.htm>
More information about the vtkusers
mailing list