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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 962 - (hide annotations)
Tue Feb 13 02:03:23 2007 UTC (13 years, 7 months ago) by jongui
File MIME type: text/x-python
File size: 479 byte(s)
Added some examples.
1 jongui 962 from esys.pyvisi import Scene, ImageReader, Image
2     from esys.pyvisi.constant import *
3    
4     s = Scene(renderer = Renderer.ONLINE, num_viewport = 1, x_size = 1000,
5     y_size = 800)
6    
7     # Create one image reader instance (used in place of data collector).
8     ir = ImageReader(ImageFormat.JPG)
9     ir.setFileName(
10     "/home/jongui/trunk/pyvisi/test/python/data_data/Flinders_eval.jpg")
11    
12     # Create one image instance.
13     i = Image(scene = s, image_reader = ir)
14     i.setOpacity(0.7)
15    
16     s.render()
17    

  ViewVC Help
Powered by ViewVC 1.1.26