[cairo-commit] pycairo/test cairo_image_surface_create_for_array.py, 1.2, 1.3

Steve Chaplin commit at pdx.freedesktop.org
Fri May 20 02:02:19 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/test
In directory gabe:/tmp/cvs-serv18178/test

Modified Files:
	cairo_image_surface_create_for_array.py 
Log Message:
SC

Index: cairo_image_surface_create_for_array.py
===================================================================
RCS file: /cvs/cairo/pycairo/test/cairo_image_surface_create_for_array.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cairo_image_surface_create_for_array.py	2 May 2005 02:25:51 -0000	1.2
+++ cairo_image_surface_create_for_array.py	20 May 2005 09:02:17 -0000	1.3
@@ -3,7 +3,6 @@
 import Numeric
 
 import cairo
-import cairo.numpy
 
 # create an array
 array = Numeric.zeros((80,80,4), Numeric.UInt8)
@@ -14,8 +13,7 @@
         array[i][j][2] = chr(255-3*j)        # R
         array[i][j][3] = 255                 # Alpha
 
-ctx = cairo.Context()
 surface = cairo.ImageSurface.create_for_array(array)
-ctx.set_target_surface(surface)
+ctx = cairo.Context(surface)
 
 surface.write_to_png('cairo_image_surface_create_for_array.png')




More information about the cairo-commit mailing list