~glitter-team/glitter/trunk

« back to all changes in this revision

Viewing changes to glitter/svg_image.py

  • Committer: Jan Jokela
  • Date: 2009-03-04 10:19:13 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: janjokela@gmail.com-20090304101913-h8g2dp9ocr7qe4pl
(- glitter/pixbuf_image.py) Removed; (glitter/image.py) Support for png images working again

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        
38
38
        context = self.cairo_create()
39
39
        svg = rsvg.Handle(self.uri)
40
 
        matrix = cairo.Matrix((self.width * 1.0 / svg.props.width),0,0,(self.height * 1.0 / svg.props.height),0,0)
 
40
        matrix = cairo.Matrix((self.width * 1.0 / svg.props.width), 
 
41
                              0, 
 
42
                              0,
 
43
                              (self.height * 1.0 / svg.props.height), 
 
44
                              0, 
 
45
                              0
 
46
                             )
41
47
        context.transform(matrix)
42
48
        svg.render_cairo(context)
43
49