Dear all,<br><br>Thank you for your kind reply and help. I've resolve the problem.<br><br>It just need to get rid of the ‘renWin->Finalize()’.<br><br>I'm really grateful for your help.<br><br>Blessings<br>Wenlong<br>
<br><div class="gmail_quote">2011/10/12 Wenlong Wang <span dir="ltr"><<a href="mailto:scc.wwl@gmail.com">scc.wwl@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">What do you mean by fill image data?<br><br>Here is my code,<br><br> imageFilter->SetInput(renWin);<br> renWin->Finalize();<br> imageFilter->Update();<br><br> vtkJPEGWriter* jw = vtkJPEGWriter::New();<br>
imageFilter->SetMagnification(</div><div><div class="im">2); <br> imageFilter->SetInputBufferTypeToRGBA();<br> imageFilter->Update();<br> jw->SetFileName("testpicture.jpg");<br> jw->SetInput(imageFilter->GetOutput());<br>
jw->Write();</div><div><br><div class="im"><br>Thank you very much.<br><br>Wenlong</div></div></div><div><div></div><div class="h5"><br><br><div class="gmail_quote">2011/10/12 Jothy <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr">Have you filled your imaeg data first?<br><br>Jothy<br><br><div class="gmail_quote">
<div><div></div><div>On Wed, Oct 12, 2011 at 11:15 AM, Wenlong Wang <span dir="ltr"><<a href="mailto:scc.wwl@gmail.com" target="_blank">scc.wwl@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>Dear all,<br><br>As I try to catch a screen shot of my model, there is a window pops out and shows the following error information.<br>
<br>'ERROR: In ..\..\VTK\Filtering\vtkImageData.cxx, line 1467<br>vtkImageData (02468790): GetScalarPointer: Pixel (0, 0, 0) not in memory.<br>
Current extent= (0, -1, 0, -1, 0, 0)'<br><br>According to this, it says the pixel at (0, 0, 0) doesn't exist. But it obviously appear in the screen. <br><br>Can anyone tell me how to resolve this? Thank you very much.<br>
<font color="#888888">
<br>Wenlong<br>
</font><br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Jothybasu K Selvaraj<br>PhD Student<br>University of Liverpool<br>Liverpool,UK<br></div><br>
</font></div>
</blockquote></div><br>
</div></div></blockquote></div><br>