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

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

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

revision 1075 by jongui, Tue Apr 3 02:47:39 2007 UTC revision 1081 by jongui, Wed Apr 11 06:13:46 2007 UTC
# Line 26  dc1.setFileName(file_name = PYVISI_EXAMP Line 26  dc1.setFileName(file_name = PYVISI_EXAMP
26  m1 = Map(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST,  m1 = Map(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST,
27          lut = Lut.COLOR, cell_to_point = False, outline = True)          lut = Lut.COLOR, cell_to_point = False, outline = True)
28    
29  # Create a ImageReader (in place of DataCollector).  # Create an ImageReader (in place of DataCollector).
30  ir = ImageReader(ImageFormat.JPG)  ir = ImageReader(ImageFormat.JPG)
31  ir.setImageName(image_name =  PYVISI_EXAMPLE_MESHES_PATH + LOAD_IMAGE_NAME)  ir.setImageName(image_name =  PYVISI_EXAMPLE_MESHES_PATH + LOAD_IMAGE_NAME)
32    
33  # Create a Image.  # Create an Image.
34  i = Image(scene = s, image_reader = ir, viewport = Viewport.SOUTH_WEST)  i = Image(scene = s, image_reader = ir, viewport = Viewport.SOUTH_WEST)
35  i.setOpacity(opacity = 0.9)  i.setOpacity(opacity = 0.9)
36  i.translate(0,0,-1)  i.translate(0,0,-1)

Legend:
Removed from v.1075  
changed lines
  Added in v.1081

  ViewVC Help
Powered by ViewVC 1.1.26