<DIV>Exact. But why do I have to pass with another filter whereas that my pixel data is already saved in memory? </DIV>
<DIV>&nbsp;</DIV>
<DIV>Have&nbsp;someone already used <STRONG>vtkImageData-&gt;GetScalarPointer(x,y,slice)</STRONG>. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Maybe THIS could help me</DIV>
<DIV>&nbsp;</DIV>
<DIV>Isa<BR><BR><B><I>Amy Squillacote &lt;amy.squillacote@kitware.com&gt;</I></B> a écrit :</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">vtkWindowToImageFilter does not require you to render the image on-screen.&nbsp; It only requires that you use a vtkRenderWindow, and by using vtkImageViewer, you are using a vtkRenderWindow.<BR><BR>- Amy<BR><BR>At 01:44 PM 6/8/2005, Renaud Isabelle wrote:<BR>
<BLOCKQUOTE class=cite cite="" type="cite">Hi,<BR>&nbsp;<BR>I'm sorry but this is not what I'm looking for. I have no image on the screen. <BR>&nbsp;<BR>By using <B>vtkImageActor</B> I can display one slice of my 3D image. This will be rendered off screen.<BR>&nbsp;<BR>All I want is retrieve the pixel data of this slice from memory to display it on .<BR>&nbsp;<BR>Do you have another idea?<BR>&nbsp;<BR>Thanks,<BR>Isa<BR><BR><B><I>Randall Hand &lt;randall.hand@gmail.com&gt;</I></B> a écrit :<BR>
<DL>
<DD>to get the screen image, you can use vtkWindowToImageFilter.. that'll turn the screen display into a 2d vtkImageData object that you can pass to other VTK filters (or in my case, vtkPNGWriter).<BR><BR>
<DD><A href="http://www.vtk.org/doc/nightly/html/classvtkWindowToImageFilter.html">http://www.vtk.org/doc/nightly/html/classvtkWindowToImageFilter.html</A> <BR><BR><BR><BR>
<DD>On 6/8/05, Renaud Isabelle</B> &lt;<A href="mailto:renauisa@yahoo.fr">renauisa@yahoo.fr</A>&gt; wrote: <BR>
<DL>
<DD>I'm got really crazy</B>. I don't manage to use double buffering</B> in order to avoid flickering</B> on screen.<BR>
<DD><BR>&nbsp;
<DD>I'm using ImageSliceViewer</B> to render a 2D slice of my 3D image on screen</B>. It works well without double buffering except for flickering on screen.<BR>
<DD><BR>&nbsp;
<DD>I have already use double buffering in MFC and I have a class CMemDC that works fine to use memory buffering. <BR>
<DD><BR>&nbsp;
<DD>-&gt; All I need is a method to get the pixel data of my 2D slice displayed on screen</B>.Then I can use it to create a DIB Bitmap from what is rendered off screen.&nbsp; <BR>
<DD><BR>&nbsp;
<DD>I found the example of rendering in MFC and I tried the series of instructions:<BR>
<DD><BR>&nbsp;
<DD>this-&gt;window-&gt;SetupMemoryRendering(x,y,hdc);<BR>
<DD>this-&gt;window-&gt;Render();<BR>
<DD>StretchBlt(dc,0,0,x,y,memDC,0,0,x,y,SRCCOPY);<BR>
<DD>this-&gt;window-&gt;ResumeScreenRendering();<BR></B>
<DD><BR>&nbsp;
<DD>but all is displayed is a white </B>page. Especially because during process, unsigned char* MemoryData</B> should be NULL.<BR>
<DD><BR>&nbsp;
<DD>Please help me. <BR>
<DD><BR>&nbsp;
<DD><BR>&nbsp;
<DD><BR><BR><BR>&nbsp;
<DD>Découvrez le nouveau Yahoo! Mail : <FONT color=#ff0000>1 Go d'espace</FONT> de stockage pour vos mails, photos et vidéos !<BR>
<DD><A href="http://us.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_1go/default/*http://fr.promotions.yahoo.com/mail/creer28.html">Créez votre Yahoo! Mail</A> <BR><BR><BR>
<DD>_______________________________________________<BR>
<DD>This is the private VTK discussion list.<BR>
<DD>Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>
<DD>Follow this link to subscribe/unsubscribe:<BR>
<DD><A href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers </A><BR><BR><BR></DD></DL><BR><BR><BR>
<DD>-- <BR>
<DD>Randall Hand<BR>
<DD><A href="http://www.yeraze.com/">http://www.yeraze.com</A> <BR><BR></DD></DL><BR>Découvrez le nouveau Yahoo! Mail : <FONT color=#ff0000>1 Go d'espace</FONT> de stockage pour vos mails, photos et vidéos !<BR><A href="http://us.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_1go/default/*http://fr.promotions.yahoo.com/mail/creer28.html">Créez votre Yahoo! Mail</A> <BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" eudora="autourl">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow this link to subscribe/unsubscribe:<BR><A href="http://www.vtk.org/mailman/listinfo/vtkusers" eudora="autourl">http://www.vtk.org/mailman/listinfo/vtkusers</A></BLOCKQUOTE></BLOCKQUOTE><p>
                <hr size=1> 
Découvrez le nouveau Yahoo! Mail : <font color="red">1 Go d'espace</font> de stockage pour vos mails, photos et vidéos !<br><a href="http://us.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_1go/default/*http://fr.promotions.yahoo.com/mail/creer28.html" target="_blank">Créez votre Yahoo! Mail</a>