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

Alaeddin A. Aydiner aydiner at empc22.ece.uiuc.edu
Mon Jan 7 17:02:08 EST 2002


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 
#################################################################



More information about the vtkusers mailing list