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)
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)
def render(self, ctx): wmfdraw.render(self, ctx)
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)
def render(self,ctx): wmfdraw.render(self,ctx)
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)