Ejemplo n.º 1
0
 def draw(self, ctx):
     ratio = 1
     print 'W/H/R: ',self.page.width,self.page.height,ratio
     if self.page.width !=1 and self.page.height != 1:
         matrix = cairo.Matrix(ratio*self.page.width*1.*self.page.zoom,0,0,ratio*self.page.height*1.*self.page.zoom,0,0)
         ctx.transform(matrix)
     wmfdraw.render(self,ctx)
Ejemplo n.º 2
0
 def draw(self, ctx):
     ratio = 1
     print 'W/H/R: ', self.page.width, self.page.height, ratio
     if self.page.width != 1 and self.page.height != 1:
         matrix = cairo.Matrix(
             ratio * self.page.width * 1. * self.page.zoom, 0, 0,
             ratio * self.page.height * 1. * self.page.zoom, 0, 0)
         ctx.transform(matrix)
     wmfdraw.render(self, ctx)
Ejemplo n.º 3
0
 def render(self, ctx):
     wmfdraw.render(self, ctx)
Ejemplo n.º 4
0
 def render(self,ctx,page):
     if self.page.width !=1 and self.page.height != 1:
         ctx.scale(self.page.width*1.*self.page.zoom,self.page.height*1.*self.page.zoom)
     wmfdraw.render(self,ctx)
Ejemplo n.º 5
0
 def render(self,ctx):
     wmfdraw.render(self,ctx)
Ejemplo n.º 6
0
 def render(self, ctx, page):
     if self.page.width != 1 and self.page.height != 1:
         ctx.scale(self.page.width * 1. * self.page.zoom,
                   self.page.height * 1. * self.page.zoom)
     wmfdraw.render(self, ctx)