<!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 Glenn,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You could use <FONT
face="Times New Roman">vtkWindowToImageFilter wich takes a window as input and
generates a snapshot of the windows contents</FONT></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Toon.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>
<HR>
</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>>> Hi<BR>>> <BR>>> I have written some code that exports
some images with<BR>>> <BR>>> vtkImageShiftScale *scaler =
vtkImageShiftScale::New();<BR>>>
scaler->SetInput(view->GetOutput());<BR>>>
scaler->SetOutputScalarTypeToUnsignedChar();<BR>>> <BR>>>
vtkPNGWriter* writer = vtkPNGWriter::New();<BR>>>
writer->SetInput(scaler->GetOutput());<BR>>>
writer->SetFileName((filename).c_str());<BR>>>
writer->Write();<BR>>> writer->Delete();<BR>>> <BR>>>
<BR>>> However, what I really need to achieve is the export of a
vtkXYPlotActor<BR>>> but I can not find anyway to convert a vtkActor2D to
vtkImageData*<BR>>> that the vtkPNGWriter requires for
input.<BR>>> <BR>>> <BR>>> I would be most grateful for any
advice.<BR>>> <BR>>> Thanks<BR>>> <BR>>>
Glenn<BR></DIV></BODY></HTML>