[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
- Previous message: [cairo-commit]
pycairo/examples/cairo_snippets snippets_ps.py, NONE,
1.1 snippets_gtk.py, 1.7, 1.8
- Next message: [cairo-commit] pycairo ChangeLog, 1.120, 1.121 README, 1.12,
1.13 configure.ac, 1.23, 1.24 RELEASING, 1.7, 1.8 NEWS, 1.9, 1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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')
- Previous message: [cairo-commit]
pycairo/examples/cairo_snippets snippets_ps.py, NONE,
1.1 snippets_gtk.py, 1.7, 1.8
- Next message: [cairo-commit] pycairo ChangeLog, 1.120, 1.121 README, 1.12,
1.13 configure.ac, 1.23, 1.24 RELEASING, 1.7, 1.8 NEWS, 1.9, 1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list