<!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>Hi John,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Maybe you could use an
ImageActor to display your image instead of using a textured plane:</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2> <A
href="http://www.vtk.org/doc/nightly/html/classvtkImageActor.html">http://www.vtk.org/doc/nightly/html/classvtkImageActor.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Greetings </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Toon.</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=j-mosso@uniandes.edu.co href="mailto:j-mosso@uniandes.edu.co">John
Mosso</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 07, 2004 5:41
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] display bmp
file</DIV>
<DIV><BR></DIV>
<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>
<P>
<HR>
<P></P>_______________________________________________<BR>This is the private
VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq><BR>Follow this link to
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BODY></HTML>