<!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&nbsp;and&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;bmpReader = 
vtkBMPReader::New();<BR>&nbsp;bmpReader-&gt;SetFileName("C:\\MyFile.bmp");<BR>&nbsp;atext 

vtkTexture::New();<BR>&nbsp;atext-&gt;SetInput(bmpReader-&gt;GetOutput());<BR>&nbsp;plane 
= vtkPlaneSource::New();<BR>&nbsp;planeMapper = 
vtkPolyDataMapper::New();<BR>&nbsp;planeMapper-&gt;SetInput(plane-&gt;GetOutput());<BR>&nbsp;ActorImage 

vtkActor::New();<BR>&nbsp;ActorImage-&gt;SetMapper(planeMapper);<BR>&nbsp;ActorImage-&gt;SetTexture(atext);<BR>&nbsp;ren-&gt;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?&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>John Mosso</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></BODY></HTML>