[vtkusers] Output to file (TIFF) in 16 bits?

Chen, Elvis anisotropic7 at yahoo.ca
Mon May 13 14:17:23 EDT 2002


greetings,

I have the following codes in VTK4/Python that outputs
the content of a vtkTkRenderWidget to a tiff file:

pane = vtkTkRenderWidget.vtkTkRenderWidget( root,
width=800, height=800 )

def writeRenderWindowToTiff():
    global pane
    wif = vtkWindowToImageFilter()
    wif.SetInput( pane.GetRenderWindow() )
    w = vtkTIFFWriter()
    w.SetInput( wif.GetOutput() )
    w.SetFileName( 'test.tif' )
    w.Write()

The problem of it is that the resulted TIFF file is
only 8-bit color.  I have looked into the
documentation and can't really find any commend that
switches on the 16bit output.  Can anyone give me a
hand?

thx in advance,

______________________________________________________________________ 
Games, Movies, Music & Sports! http://entertainment.yahoo.ca



More information about the vtkusers mailing list