コード例 #1
0
 def save_bmp(self, file_name):
     """Save to a BMP image file."""
     if len(file_name) != 0:
         w2if = self._get_window_to_image()
         ex = tvtk.BMPWriter()
         ex.file_name = file_name
         configure_input(ex, w2if)
         self._exporter_write(ex)
コード例 #2
0
ファイル: tvtk_scene.py プロジェクト: renjiec/mayavi
 def save_bmp(self, file_name):
     """Save to a BMP image file."""
     if len(file_name) != 0:
         w2if = tvtk.WindowToImageFilter(read_front_buffer=True)
         w2if.magnification = self.magnification
         self._lift()
         w2if.input = self._renwin
         ex = tvtk.BMPWriter()
         ex.file_name = file_name
         ex.input = w2if.output
         self._exporter_write(ex)
コード例 #3
0
 def save_bmp(self, file_name):
     """Save to a BMP image file."""
     if len(file_name) != 0:
         w2if = tvtk.WindowToImageFilter(
             read_front_buffer=not self.off_screen_rendering)
         w2if.magnification = self.magnification
         self._lift()
         w2if.input = self._renwin
         ex = tvtk.BMPWriter()
         ex.file_name = file_name
         configure_input(ex, w2if)
         self._exporter_write(ex)