<div>hi,my dear vtkusers,</div> <div> i am a newbie in the vtk,recently i had a question.</div> <div>the idea:</div> <div> i draw a polygon myself ,the size is 380*261;the format is BMP.</div> <div> the name of picture is named like this </div> <div> yu01.bmp,yu02.bmp............</div> <div> the picture is exsit in the E:\bmp1\,</div> <div> now i want to read it and reconstruction.</div> <div>the code :</div> <div> vtkBMPReader *v8=vtkBMPReader::New();<BR>
v8->SetFilePrefix("E:\\bmp1\\yu");<BR> v8->SetFilePattern("%s%2d.bmp");<BR> v8->SetDataExtent(0,379,0,260,1,13);<BR> v8->SetDataSpacing(1,1,1);<BR> v8->Update();</div> <div> vtkPolyDataMapper *ctmapper=vtkPolyDataMapper::New();<BR> ctmapper->SetInputConnection(v8->GetOutputPort());<BR> vtkActor *ctactor=vtkActor::New();<BR> ctactor->SetMapper(ctmapper);<BR> vtkRenderer *ctren=vtkRenderer::New();<BR> ctren->AddActor(ctactor);<BR> ctren->SetBackground(0.1,0.1,0.1);<BR> vtkRenderWindow *ctrenwin=vtkRenderWindow::New();<BR>
ctrenwin->AddRenderer(ctren);</div> <div> ctrenwin->Delete();<BR> ctren->Delete();<BR> ctactor->Delete();<BR>ctmapper->Delete ();<BR>v8->Delete();</div> <div> </div> <div>the error: </div> <div>ERROR: In ..\..\VTK\IO\vtkBMPReader.cxx, line 95<BR>vtkBMPReader (017D6E70): Unable to open file E:\bmp1\yu 1.bmp</div> <div> </div> <div>why ? who can help me ,thanks advance!</div> <div>or somebody have a simple code .can you share with me !thanks a lot!</div> <div> </div> <div>lee</div><p> 
                <hr size=1><a href="http://music.yahoo.com.cn/?source=mail_mailbox_footer" target=blank>
Mp3疯狂搜-新歌热歌高速下
</a>