[cairo-commit]
pycairo/examples/cairo_snippets/snippets __init__.py, 1.3, 1.4
Steve Chaplin
commit at pdx.freedesktop.org
Thu Aug 3 19:24:23 PDT 2006
- Previous message: [cairo-commit] pycairo/cairo Makefile.am,1.18,1.19
- Next message: [cairo-commit]
pycairo/examples/cairo_snippets snippets_gtk.py, 1.14,
1.15 snippets_pdf.py, 1.10, 1.11 snippets_png.py, 1.8,
1.9 snippets_ps.py, 1.6, 1.7 snippets_svg.py, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: stevech1097
Update of /cvs/cairo/pycairo/examples/cairo_snippets/snippets
In directory kemper:/tmp/cvs-serv12247/examples/cairo_snippets/snippets
Modified Files:
__init__.py
Log Message:
'SC'
Index: __init__.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/__init__.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- __init__.py 20 Jan 2006 09:55:16 -0000 1.3
+++ __init__.py 4 Aug 2006 02:24:21 -0000 1.4
@@ -10,14 +10,3 @@
def snippet_normalize (ctx, width, height):
ctx.scale (width, height)
ctx.set_line_width (0.04)
-
-def snippet_set_bg_svg (ctx, filename):
- import cairo.svg
-
- svg_cr = cairo.svg.Context()
- svg_cr.parse (filename)
- w, h = svg_cr.get_size()
- ctx.save()
- ctx.scale (1.0/w, 1.0/h)
- svg_cr.render (ctx)
- ctx.restore()
- Previous message: [cairo-commit] pycairo/cairo Makefile.am,1.18,1.19
- Next message: [cairo-commit]
pycairo/examples/cairo_snippets snippets_gtk.py, 1.14,
1.15 snippets_pdf.py, 1.10, 1.11 snippets_png.py, 1.8,
1.9 snippets_ps.py, 1.6, 1.7 snippets_svg.py, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list