示例#1
0
 def sheet(img_offsets, size=None, unit=1):
     img_offsets = [(i.raw(), off) for i,off in img_offsets]
     new_img = CachedImage.sheet(img_offsets, size)
     return Image(img=new_img, unit=unit)
示例#2
0
 def flatten(self):
     w, h = self.px_size
     new_img = CachedImage.sheet(
             [(self._frames[i].raw(), (i * w, 0)) for i in range(self.length)],
             (self.length * w, h))
     return Image(img=new_img, unit=self.unit)