Пример #1
0
 def draw_point(self, gc, x, y):
     """
     Draw a single point at x,y
     """
     self.image.stroke(paint.line(x, self.height - y, x, self.height - y),
                       self.get_paint_color(gc.get_rgb()),
                       self.points_to_pixels(gc.get_linewidth()))
Пример #2
0
 def draw_point(self, gc, x, y):
     """
     Draw a single point at x,y
     """
     self.image.stroke(
         paint.line(x, self.height - y, x, self.height - y),
         self.get_paint_color(gc.get_rgb()),
         self.points_to_pixels(gc.get_linewidth()))
Пример #3
0
 def draw_line(self, gc, x1, y1, x2, y2):
     """
     Draw a single line from x1,y1 to x2,y2
     """
     path = paint.line(x1, self.height - y1, x2, self.height - y2)
     path = self.dash_path(gc, path)
     self.image.stroke(path, \
                       self.get_paint_color(gc.get_rgb()),
                       self.points_to_pixels(gc.get_linewidth()))
Пример #4
0
 def draw_line(self, gc, x1, y1, x2, y2):
     """
     Draw a single line from x1,y1 to x2,y2
     """
     path = paint.line(x1, self.height - y1, x2, self.height - y2)
     path = self.dash_path(gc, path)
     self.image.stroke(path, \
                       self.get_paint_color(gc.get_rgb()),
                       self.points_to_pixels(gc.get_linewidth()))