Exemple #1
0
 def load_layer_from_pixbuf(self, pixbuf, x=0, y=0):
     arr = helpers.gdkpixbuf2numpy(pixbuf)
     s = tiledsurface.Surface()
     bbox = s.load_from_numpy(arr, x, y)
     self.do(command.LoadLayer(self, s))
     return bbox
Exemple #2
0
 def load_layer_from_png(self, filename, x=0, y=0, feedback_cb=None):
     s = tiledsurface.Surface()
     bbox = s.load_from_png(filename, x, y, feedback_cb)
     self.do(command.LoadLayer(self, s))
     return bbox
 def load_layer_from_pixbuf(self, pixbuf, x=0, y=0):
     arr = helpers.gdkpixbuf2numpy(pixbuf)
     self.do(command.LoadLayer(self, arr, x, y))