[vtkusers] save a jpg file in a specific directory

Renato Cesar Pompeu rcpompeu at hotmail.com
Sun May 16 17:33:56 EDT 2010


Actually, I wish I could choose a directory for saving, not specify it directly on the command line.

Thanks.

 
> Date: Sun, 16 May 2010 17:28:54 -0400
> Subject: Re: [vtkusers] save a jpg file in a specific directory
> From: daviddoria+vtk at gmail.com
> To: rcpompeu at hotmail.com
> CC: vtkusers at vtk.org
> 
> On Sun, May 16, 2010 at 5:23 PM, Renato Cesar Pompeu
> <rcpompeu at hotmail.com> wrote:
> > Hi all,
> >
> > How do I save a jpg file in a specific directory that I can choose when
> > saving?
> >
> >
> > ...
> >  vtkSmartPointer<vtkJPEGWriter> writer =
> >       vtkSmartPointer<vtkJPEGWriter>::New();
> >   writer->SetFileName("screenshot2.png");     // ?????
> >   writer->SetInput(windowToImageFilter->GetOutput());
> >   writer->Write();
> > ...
> >
> >
> > Thanks a lot!
> 
> Renato,
> 
> You can simply put the entire path in the SetFileName call:
> 
> writer->SetFileName("/your/path/here/screenshot2.png");
> 
> David
 		 	   		  
_________________________________________________________________
DEIXE SUAS CONVERSAS MAIS DIVERTIDAS. TRANSFORME AQUI SUAS FOTOS EM EMOTICONS, É GRÁTIS.
http://ilm.windowslive.com.br/?ocid=ILM:ILM:Hotmail:Tagline:1x1:Tagline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100516/1fc9c03b/attachment.htm>


More information about the vtkusers mailing list