[cairo-commit] pycairo/test isurface_create_for_array.py,1.1,1.2
Steve Chaplin
commit at pdx.freedesktop.org
Sat Jul 1 01:05:54 PDT 2006
Committed by: stevech1097
Update of /cvs/cairo/pycairo/test
In directory kemper:/tmp/cvs-serv24769/test
Modified Files:
isurface_create_for_array.py
Log Message:
'SC'
Index: isurface_create_for_array.py
===================================================================
RCS file: /cvs/cairo/pycairo/test/isurface_create_for_array.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- isurface_create_for_array.py 22 Jun 2006 04:55:33 -0000 1.1
+++ isurface_create_for_array.py 1 Jul 2006 08:05:52 -0000 1.2
@@ -1,10 +1,10 @@
#!/usr/bin/env python
-
-import Numeric
+"""test ImageSurface.create_for_array()
+"""
import cairo
+import Numeric
-# create an array
array = Numeric.zeros((80,80,4), Numeric.UInt8)
for i in range(80):
for j in range(80):
@@ -15,5 +15,4 @@
surface = cairo.ImageSurface.create_for_array(array)
ctx = cairo.Context(surface)
-
-surface.write_to_png('cairo_image_surface_create_for_array.png')
+surface.write_to_png('isurface_create_for_array.png')
More information about the cairo-commit
mailing list