#NEWLINE# def save_bmp( self , file_name ) : #NEWLINE# #INDENT# 'Save to a BMP image file.' #NEWLINE# if ( len ( file_name ) != 0 ) : #NEWLINE# #INDENT# w2if = tvtk . WindowToImageFilter ( read_front_buffer = ( not ex . off_screen_rendering ) ) #NEWLINE# w2if . magnification = self . magnification #NEWLINE# self . _lift ( ) #NEWLINE# w2if . input = self . _renwin #NEWLINE# ex = tvtk . BMPWriter ( ) #NEWLINE# ex . file_name = file_name #NEWLINE# configure_input ( ex , w2if ) #NEWLINE# self . _exporter_write ( ex )