[vtkusers] save a jpg file in a specific directory

Bill Lorensen bill.lorensen at gmail.com
Sun May 16 17:28:48 EDT 2010


Just specify the full path to SetFileName
.e.g
writer->SetFileName("/home/ranato/Screenshots/screenshot2.png");
or
writer->SetFileName("c:/ranato/Screenshots/screenshot2.png");

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!
>
> ________________________________
> USE O MESSENGER DENTRO DO HOTMAIL SEM PRECISAR INSTALAR NADA. CLIQUE PARA
> VER COMO.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list