[cairo-commit] pycairo ChangeLog,1.191,1.192 NOTES,1.20,1.21

Steve Chaplin commit at pdx.freedesktop.org
Thu Dec 15 08:20:50 PST 2005


Committed by: stevech1097

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

Modified Files:
	ChangeLog NOTES 
Log Message:
'SC'

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/pycairo/ChangeLog,v
retrieving revision 1.191
retrieving revision 1.192
diff -u -d -r1.191 -r1.192
--- ChangeLog	14 Dec 2005 04:47:02 -0000	1.191
+++ ChangeLog	15 Dec 2005 16:20:46 -0000	1.192
@@ -1,3 +1,11 @@
+2005-12-16  Steve Chaplin  <steve1097 at yahoo.com.au>
+
+	* cairo/pycairo-surface.c (image_surface_create_from_png): update
+	ImageSurface.create_from_png(f) so that 'f' can be a file-like object
+	(as well as a filename or a file object).
+
+	* NOTES : update notes for ImageSurface.create_from_png()
+
 2005-12-14  Steve Chaplin  <steve1097 at yahoo.com.au>
 
 	* cairo/cairomodule.c :

Index: NOTES
===================================================================
RCS file: /cvs/cairo/pycairo/NOTES,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- NOTES	14 Dec 2005 04:47:02 -0000	1.20
+++ NOTES	15 Dec 2005 16:20:46 -0000	1.21
@@ -158,10 +158,10 @@
     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_from_png (f)
+      where 'f' is a filename, a file object, or a file-like object
     surface = cairo.ImageSurface.create_for_data (data, format, w, h, stride)
-                where 'data' if a writable Python buffer object
+      where 'data' if a writable Python buffer object
 
     extra pycairo ImageSurface creation methods:
     surface = cairo.ImageSurface.create_for_array (array)



More information about the cairo-commit mailing list