def ShowSourceSlide(self): if os.path.exists(self.filename): arr = HamaWrapper.getSlideImage(self.filename) im = Image.frombuffer("RGB", (arr.shape[2], arr.shape[1]), arr.data) im.show() else: print "Error: File not found!"
def GetSlideImage(self): if os.path.exists(self.filename): return HamaWrapper.getSlideImage(self.filename) else: print "Error: File not found!"