[vtkusers] display bmp file
John Mosso
j-mosso at uniandes.edu.co
Wed Oct 6 23:41:24 EDT 2004
Greetings!
I'm VTK freshman (know nothing so far!)
I have an MFC app and I'm trying to display a bmp file using VTK. This is the code I'm using for:
bmpReader = vtkBMPReader::New();
bmpReader->SetFileName("C:\\MyFile.bmp");
atext = vtkTexture::New();
atext->SetInput(bmpReader->GetOutput());
plane = vtkPlaneSource::New();
planeMapper = vtkPolyDataMapper::New();
planeMapper->SetInput(plane->GetOutput());
ActorImage = vtkActor::New();
ActorImage->SetMapper(planeMapper);
ActorImage->SetTexture(atext);
ren->AddActor(ActorImage);
This code display the file but it does not conserve lenght-heigth relationship (it's a square!) and centered; plus, I want to display the file starting at the left corner of the window and full size. Does anyone have any suggestions?
Thanks in advance.
John Mosso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041006/ea26b386/attachment.htm>
More information about the vtkusers
mailing list