/[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 995 by jongui, Fri Feb 23 03:35:33 2007 UTC revision 996 by jongui, Mon Feb 26 03:43:13 2007 UTC
# Line 1  Line 1 
1  from esys.pyvisi import Scene, ImageReader, Image  from esys.pyvisi import Scene, ImageReader, Image, GlobalPosition
2  from esys.pyvisi.constant import *  from esys.pyvisi.constant import *
3    
4  s = Scene(renderer = Renderer.ONLINE, num_viewport = 1, x_size = 1000,  s = Scene(renderer = Renderer.ONLINE, num_viewport = 1, x_size = 1000,
# Line 11  ir.setFileName(file_name = Line 11  ir.setFileName(file_name =
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(opacity = 0.7)  i.setOpacity(opacity = 0.9)
15    i.setPosition(GlobalPosition(-600,50.9,0.5))
16    
17  s.render()  s.render()
18    

Legend:
Removed from v.995  
changed lines
  Added in v.996

  ViewVC Help
Powered by ViewVC 1.1.26