MCPcopy Create free account
hub / github.com/Image-Py/imagepy / sketch

Method sketch

imagepy/core/roi/rectangleroi.py:94–97  ·  view source on GitHub ↗
(self, img, w=1, color=None)

Source from the content-addressed store, hash-verified

92 dc.DrawCircle(f((self.lt+self.rt)/2, self.bm),2)
93
94 def sketch(self, img, w=1, color=None):
95 pen = paint.Paint()
96 xs, ys = [x[0] for x in self.body], [x[1] for x in self.body]
97 pen.draw_path(img, xs, ys, w, color)
98
99 def fill(self, img, color=None):
100 pen = paint.Paint()

Callers

nothing calls this directly

Calls 1

draw_pathMethod · 0.95

Tested by

no test coverage detected