<div>Yes, It is saved in jpeg format as I expected. However, the camera zoom in to right top of the original display, I have to reset the camera to fix it.</div>
<div> </div>
<div>Wenlong<br><br></div>
<div class="gmail_quote">2011/10/12 Jothy <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">Can you check the output of your imgFilter is as expected? <br><font color="#888888"><br>Jothy</font>
<div>
<div></div>
<div class="h5"><br><br>
<div class="gmail_quote">On Wed, Oct 12, 2011 at 11:21 AM, Wenlong Wang <span dir="ltr"><<a href="mailto:scc.wwl@gmail.com" target="_blank">scc.wwl@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>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>2); <br> imageFilter->SetInputBufferTypeToRGBA();<br> imageFilter->Update();<br> jw->SetFileName("testpicture.jpg");<br> jw->SetInput(imageFilter->GetOutput());<br> jw->Write();</div>
<div><br>
<div><br>Thank you very much.<br><br>Wenlong</div></div></div>
<div>
<div></div>
<div><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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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><br clear="all"><br>-- <br>
<div dir="ltr">Jothybasu K Selvaraj<br>PhD Student<br>University of Liverpool<br>Liverpool,UK<br></div><br></div></div></div></blockquote></div><br>