[cairo-commit] pycairo ChangeLog,1.182,1.183 NOTES,1.15,1.16

Steve Chaplin commit at pdx.freedesktop.org
Wed Sep 28 07:35:33 PDT 2005


Committed by: stevech1097

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

Modified Files:
	ChangeLog NOTES 
Log Message:
'SC'

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/pycairo/ChangeLog,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -d -r1.182 -r1.183
--- ChangeLog	22 Sep 2005 16:13:02 -0000	1.182
+++ ChangeLog	28 Sep 2005 14:35:31 -0000	1.183
@@ -1,3 +1,10 @@
+2005-09-28  Steve Chaplin  <steve1097 at yahoo.com.au>
+
+	* NOTES : add note for cairo.ImageSurface.create_for_data()
+
+	* cairo/pycairo-surface.c (pycairo_read_func, pycairo_write_func):
+	rename to _read_func and _write_func
+
 2005-09-22  Steve Chaplin  <steve1097 at yahoo.com.au>
 
 	* test/cairo_image_surface_create_for_data.py : rename to

Index: NOTES
===================================================================
RCS file: /cvs/cairo/pycairo/NOTES,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- NOTES	5 Sep 2005 01:22:18 -0000	1.15
+++ NOTES	28 Sep 2005 14:35:31 -0000	1.16
@@ -150,14 +150,17 @@
 C : surface = cairo_image_surface_create (format, width, height);
     surface = cairo_image_surface_create_from_png (filename);
     surface = cairo_image_surface_create_from_png_stream (read_func, closure);
-    not available
+    surface = cairo_image_surface_create_for_data (data, format, w, h, stride)
 
 Py: surface = cairo.ImageSurface (format, width, height)
     surface = cairo.ImageSurface.create_from_png (filename)
     surface = cairo.ImageSurface.create_from_png (file_object)
-    surface = cairo.ImageSurface.create_for_array (array)
-              # create a surface from a Numerical Python array
+    surface = cairo.ImageSurface.create_for_data (data, format, w, h, stride)
+                where 'data' if a writable Python buffer object
 
+    extra pycairo ImageSurface creation methods:
+    surface = cairo.ImageSurface.create_for_array (array)
+                where 'array' is a Numerical Python array
 
 C:  surface = cairo_pdf_surface_create (filename, width_in_points,
 				        height_in_points);



More information about the cairo-commit mailing list