Logo Search packages:      
Sourcecode: pycairo version File versions  Download package

libsvg.py

import cairo.svg

snippet_normalize (cr, width, height)

svg_cr = cairo.svg.Context()

svg_cr.parse ("data/home.svg")
w, h = svg_cr.get_size()
cr.scale (1.0/w, 1.0/h)
svg_cr.render (cr)


Generated by  Doxygen 1.6.0   Back to index