[vtkusers] Saving BMP without visualizing them

Dmitri Danewitz d.danewitz at yahoo.de
Wed Aug 26 08:10:34 EDT 2009


Hello Jim,
 
thanks a lot! Somehow it worked even easier: I just set the "OffScreenRenderingOn()"
 
Greets Dmitri

--- Jim Harsh <jharsh at lanl.gov> schrieb am Mi, 19.8.2009:


Von: Jim Harsh <jharsh at lanl.gov>
Betreff: Re: [vtkusers] Saving BMP without visualizing them
An: "Dmitri Danewitz" <d.danewitz at yahoo.de>
Datum: Mittwoch, 19. August 2009, 12:56




Hi Dmitri,

I haven't seen a reply to your message, and I haven't used VTK for a 
while but I think what you want to do is to use the off screen 
renderer. Something like VTKOffScreenRenderer. It may have the OS in 
the name, I don't remember.

Good luck,
Jim


At 04:46 AM 8/18/2009, you wrote:
>Hello!
>
>I wrote a program, that visualizes a BMP and then saves it 
>afterwards. But I can't manage to only save the BMP without 
>visualizing it first. What am I doing wrong?
>
>Here's how I try to save the vtkRenderer, where my image data is:
>
>vtkRendererSource *renSrcBMP = vtkRendererSource::New();
>   renSrcBMP->SetInput(ren[1]);
>   renSrcBMP->WholeWindowOn();
>   vtkBMPWriter *bmpWriter = vtkBMPWriter::New();
>   bmpWriter->SetInput(renSrcBMP->GetOutput());
>   bmpWriter->SetFileName("d:/Output.bmp");
>   bmpWriter->Write();
>
>Greets
>Dmitri
>
>_______________________________________________
>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




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090826/7d2b5686/attachment.htm>


More information about the vtkusers mailing list