[vtkusers] vtkWindowToImageFilter Weird Bug...

Luke Masters masters_luke at hotmail.com
Tue Apr 27 15:25:41 EDT 2004


Guess i'm gonna answer myself :),

I found ( in java ), OffScreenRenderingOn(); and OffScreenRenderingOff(); 
just put this code before & after you image snapshot code and voila! It 
helped me alot, hope it can help others out there. I think it might be a 
little faster getting images from OffScreen but i'm not sure, the VTK Guru's 
would have to confirm it.

Luke Masters :)
masters_luke at hotmail.com


>Hi,
>
>I am using a vtkWindowToImageFilter combine with a vtkJPEGWriter, to get a 
>JPEG image of my RenderWindow. The weird thing is that if there is anything 
>else on top of the RenderWindow it is added to my JPEG. Is there a way to 
>only get the content of my RenderWindow and not was is on top?
>
>** I looked at the archives and the only thing I found would be to use 
>offscreenRendering...
>
>Thanks for your time
>
>Luke Masters :)
>masters_luke at hotmail.com

_________________________________________________________________
Add photos to your e-mail with MSN Premium. Get 2 months FREE*  
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines




More information about the vtkusers mailing list