[vtkusers] How to change the background color in screenshots from the renderer?

anast.jm at pg.com anast.jm at pg.com
Mon Jan 7 17:28:40 EST 2002


vtkRenderer ren
    ren SetBackground 1.0 1.0 1.0

print white background???



                                                                
 Internet Mail Message                                          
 Received from host:      [208.136.18.25]                       
 [208.136.18.25]                                                
                                                                


From: "Alaeddin A. Aydiner" <aydiner at empc22.ece.uiuc.edu>@public.kitware.com on
01/07/2002 04:02 PM CST
                                                                                                       
                            "Alaeddin A. Aydiner"           To:   vtkusers at public.kitware.com          
 <aydiner at empc22.ece.uiuc.edu>@public.kitware.com           Cc:    (bcc: John Anast-JM/PGI)            
                                                    Subject:      [vtkusers] How to change the         
                                                         background color in screenshots from the      
      Sent by:  vtkusers-admin at public.kitware.com        renderer?                                     
                              01/07/2002 05:02 PM                                                      
                                                                                                       
                                                                                                       




Hello,

I get the screenshots by using the interactor's user-defined method as follows:

vtkRenderWindowInteractor iren
        iren SetRenderWindow renWin
        iren SetUserMethod {
                vtkRenderLargeImage renderLarge
                vtkTIFFWriter writer
                renderLarge SetInput ren
                renderLarge SetMagnification 1
                writer SetFileName "vetem.tiff"
                writer SetInput [renderLarge GetOutput]
                writer Write
                writer Delete
                renderLarge Delete
        }

However, I do not want to print the black background.

Thanks in advance for your help.

--
#################################################################
Alaeddin Ahmet AYDINER    377 CCEM Everitt Laboratory MC 702
Office Tel: 217 333 0434  Electrical & Computer Eng. Dept. UIUC
#################################################################
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <
http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers






More information about the vtkusers mailing list