/[escript]/trunk/pyvisi/py_src/examples/image.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/examples/image.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 962 by jongui, Tue Feb 13 02:03:23 2007 UTC revision 992 by jongui, Fri Feb 23 03:35:33 2007 UTC
# Line 6  s = Scene(renderer = Renderer.ONLINE, nu Line 6  s = Scene(renderer = Renderer.ONLINE, nu
6    
7  # Create one image reader instance (used in place of data collector).  # Create one image reader instance (used in place of data collector).
8  ir = ImageReader(ImageFormat.JPG)  ir = ImageReader(ImageFormat.JPG)
9  ir.setFileName(  ir.setFileName(file_name =
10          "/home/jongui/trunk/pyvisi/test/python/data_data/Flinders_eval.jpg")          "/home/jongui/trunk/pyvisi/test/python/data_data/Flinders_eval.jpg")
11    
12  # Create one image instance.  # Create one image instance.
13  i = Image(scene = s, image_reader = ir)  i = Image(scene = s, image_reader = ir)
14  i.setOpacity(0.7)  i.setOpacity(opacity = 0.7)
15    
16  s.render()  s.render()
17    

Legend:
Removed from v.962  
changed lines
  Added in v.992

  ViewVC Help
Powered by ViewVC 1.1.26