def render_as_pixbuf(self, *args, **kwargs): if not self.tiledict: logger.warning('empty surface') t0 = time.time() kwargs['alpha'] = True res = pixbufsurface.render_as_pixbuf(self, *args, **kwargs) logger.debug('%.3fs rendering layer as pixbuf', time.time() - t0) return res
def render_as_pixbuf(self, *args, **kwargs): if not self.tiledict: print 'WARNING: empty surface' t0 = time.time() kwargs['alpha'] = True res = pixbufsurface.render_as_pixbuf(self, *args, **kwargs) print ' %.3fs rendering layer as pixbuf' % (time.time() - t0) return res
def render_as_pixbuf(self, *args, **kwargs): return pixbufsurface.render_as_pixbuf(self, *args, **kwargs)