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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 992 - (show annotations)
Fri Feb 23 03:35:33 2007 UTC (13 years, 7 months ago) by jongui
File MIME type: text/x-python
File size: 501 byte(s)
Fix minor bugs in relation to setting the active scalar, vector and tensor for both the scaling and coloring options.
1 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(file_name =
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(opacity = 0.7)
15
16 s.render()
17

  ViewVC Help
Powered by ViewVC 1.1.26