Exemplo n.º 1
0
 def redraw(self):
     (factor, img) = self.imgs[0]
     if self.__visible:
         img = img.copy()
         self.__draw_grips(img, PIL.ImageDraw.Draw(img), factor)
     img = image2pixbuf(img)
     self.img_widget.set_from_pixbuf(img)
Exemplo n.º 2
0
 def redraw(self):
     (factor, img) = self.imgs[0]
     if self.__visible:
         img = img.copy()
         self.__draw_grips(img, ImageDraw.Draw(img), factor)
     img = image2pixbuf(img)
     self.img_widget.set_from_pixbuf(img)
Exemplo n.º 3
0
 def redraw_calibration_image(self):
     (factor, img) = self.calibration['images'][0]
     img = img.copy()
     self.grips.draw(img, ImageDraw.Draw(img), factor)
     img = image2pixbuf(img)
     self.calibration['image_gui'].set_from_pixbuf(img)
Exemplo n.º 4
0
 def redraw_calibration_image(self):
     (factor, img) = self.calibration['images'][0]
     img = img.copy()
     self.grips.draw(img, ImageDraw.Draw(img), factor)
     img = image2pixbuf(img)
     self.calibration['image_gui'].set_from_pixbuf(img)
Exemplo n.º 5
0
 def __redraw_result(self):
     (scale, img) = self.imgs['resized']
     for action in self.__changes:
         img = action.do(img, scale)
     img = image2pixbuf(img)
     self.__result_img_widget.set_from_pixbuf(img)
Exemplo n.º 6
0
 def __redraw_result(self):
     (scale, img) = self.imgs['resized']
     for action in self.__changes:
         img = action.do(img, scale)
     img = image2pixbuf(img)
     self.__result_img_widget.set_from_pixbuf(img)