<html><head><style type="text/css">body{font:12px Arial;margin:3px;overflow-y:auto;overflow-x:auto}p{margin:0px;}blockquote, ol, ul{margin-top:0px;margin-bottom:0px;}</style></head>
<body><div style="DISPLAY: block"><P>Hi there,</P>
<P> </P>
<P>does anyone know how to use correctly the vtkBMPReader in Tcl/tk?</P>
<P>Here is my code to read several bmp files and display them in my tk GUI:</P>
<P> </P>
<P> set dir [tk_chooseDirectory -initialdir "D:/Project/video/ " ]</P>
<P><BR>...</P>
<P>vtkBMPReader reader</P>
<P> reader SetDataExtent 0 719 0 575 0 10 #720*576, 10 images from 0 to 10<BR> reader SetFilePrefix "$dir/ "<BR> reader SetFilePattern "%s%d.bmp" # $dir/0.bmp to $dir/10.bmp<BR></P>
<P> reader Update</P>
<P> </P>
<P>vtkImageViewer viewer<BR> viewer SetColorWindow 256<BR> viewer SetColorLevel 127.5</P>
<P><BR> viewer SetInput [reader GetOutput]<BR> viewer Render<BR>.....</P>
<P> </P>
<P>My viewer only displays the first image 0.bmp and doesn't update although I put the command "reader Update"...Any idea?<BR></P>
<P>Thanks in advance,</P>
<P>L.</P></br><p style="margin-top:11px;padding-top:3px;background-image: url(http://mail.lycos.co.uk/Images/Mail/_content/dot.gif);background-repeat: repeat-x;background-position: 0px 0px;">Heart disease is Britains biggest killer. Join the British Heart Foundations Big Red Fightback: <a href="http://bhf.org.uk/fightback">bhf.org.uk/fightback</a></div></body></html>