<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Greetings!</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm VTK freshman (know nothing so
far!)</FONT></DIV>
<DIV><FONT face=Arial size=2>I have an MFC app and I'm trying to
display a bmp file using VTK. This is the code I'm using for:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> bmpReader =
vtkBMPReader::New();<BR> bmpReader->SetFileName("C:\\MyFile.bmp");<BR> atext
=
vtkTexture::New();<BR> atext->SetInput(bmpReader->GetOutput());<BR> plane
= vtkPlaneSource::New();<BR> planeMapper =
vtkPolyDataMapper::New();<BR> planeMapper->SetInput(plane->GetOutput());<BR> ActorImage
=
vtkActor::New();<BR> ActorImage->SetMapper(planeMapper);<BR> ActorImage->SetTexture(atext);<BR> ren->AddActor(ActorImage);<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>This code display the file but it does not conserve
lenght-heigth relationship (it's a square!) and centered; plus, </FONT><FONT
face=Arial size=2>I want to display the file starting at the left corner of the
window and full size. Does anyone have any suggestions? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>John Mosso</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>