예제 #1
0
 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!"
예제 #2
0
 def GetSlideImage(self):
     if os.path.exists(self.filename):
         return HamaWrapper.getSlideImage(self.filename)
     else:
         print "Error: File not found!"